X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=markdown.awk;h=973818067497779dc286f234b1c1ed489f2e4dfe;hb=34502266a33ecab74589b15f2ea2a955f9c5b8ee;hp=24235f613bcc28666b635eb6b1c75d02481d8618;hpb=04f6da6f71cf26025036c5cb4d561f1414fc82c9;p=webtxt diff --git a/markdown.awk b/markdown.awk index 24235f6..9738180 100755 --- a/markdown.awk +++ b/markdown.awk @@ -412,6 +412,8 @@ BEGIN { # Buffering of full file ist necessary, e.g. to find reference links while (getline) { file = file $0 "\n"; } + # Clean up MS-DOS line breaks + gsub(/\r\n/, "\n", file); # Fill array of reference links f = file; rl_id;