From eb6e92a65e8d2a977277c429238171c0a9de3d0f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 10 Dec 2014 02:38:57 +0100 Subject: Isolate and document regex. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ae1009..8d9cda1 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ stem = eut source_baseurl = http://euwiki.org/ source_basename = Ensuring_utmost_transparency_--_Free_Software_and_Open_Standards_under_the_Rules_of_Procedure_of_the_European_Parliament +# work around in mediawiki bug parsing blockquote tags on same line +re_blockquote = s|\n*()\n*|\n$$1\n|g + all: $(stem).pdf download: @@ -13,7 +16,7 @@ $(stem).mediawiki: $(stem).raw -e 'decode_entities($$_);' \ -e 's|.*?\n= |= |s;' \ -e 's|||s;' \ - -e 's|\n*()\n*|\n$$1\n|g;' \ + -e '$(re_blockquote);' \ < $< > $@ $(stem).pdf: $(stem).mediawiki template.tex -- cgit v1.2.3