From: Paul Hänsch Date: Wed, 7 Jul 2021 12:50:54 +0000 (+0200) Subject: Squashed 'cgilite/' changes from fa3afea..b089a33 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=34502266a33ecab74589b15f2ea2a955f9c5b8ee;p=webtxt Squashed 'cgilite/' changes from fa3afea..b089a33 b089a33 md: handle DOS line breaks git-subtree-dir: cgilite git-subtree-split: b089a33c27ef1af2b4d5816d4af7ef7809210a02 --- 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;