Browse Source

Fix function exporting bug

The Perl code did not keep hash sign, nullifying effect of the strip_doc
pipe.  As a result, the function docstring would contain single space
before each non-empty line.

Markdown does not care about that (well, unless we already had 3 spaces
there in which case a block could be considered verbatim).  In POD,
however, this means verbatim plaintext.  Viewing as manpage later (by
far most common use case), the visual difference is normally too subtle
to notice, but at some point pod2html had spilled the beans.
Alois Mahdal 7 years ago
parent
commit
c222acba31
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/bin/shellfu-doc

+ 1
- 1
src/bin/shellfu-doc View File

@@ -280,7 +280,7 @@ filter_fdoc() {
280 280
                 exit;
281 281
             }
282 282
             next unless $isdoc;
283
-            s/^    #//;
283
+            s/^    //;
284 284
             print;
285 285
         }' | strip_doc
286 286
 }