소스 검색

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 년 전
부모
커밋
c222acba31
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/bin/shellfu-doc

+ 1
- 1
src/bin/shellfu-doc 파일 보기

@@ -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
 }