Skip to content

Commit

Permalink
move from outline mode docs to sphinx/rst
Browse files Browse the repository at this point in the history
  • Loading branch information
philshafer committed Nov 3, 2019
1 parent bac5266 commit b2af868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xolint/xolint.pl
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ sub extract_docs {
$need_nl = 0;
}

print "*** '$_'\n\n";
$under = "+" x (length($_) + 2);

print "'$_'\n$under\n\n";
print "The message \"$_\" can be caused by code like:\n\n";
$new = 0;

} elsif (/xo_emit\s*\(/) {
s/^\s+//;
print " $_\n\n";
print "\n::\n $_\n\n";

} elsif (/^Should be/i) {
print "This code should be replaced with code like:\n\n";
Expand Down

0 comments on commit b2af868

Please sign in to comment.