From 7280981382b9dabd94874b9dca6591e7d351fc36 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 26 Nov 2010 11:37:26 +0100 Subject: .library/IkiWiki/Plugin/ymlfront.pm: Workaround for YAML strings containing ]]. For now, all [[!ymlfront [...]]] directives shall be at the end of the files. --- .library/IkiWiki/Plugin/ymlfront.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.library/IkiWiki/Plugin') diff --git a/.library/IkiWiki/Plugin/ymlfront.pm b/.library/IkiWiki/Plugin/ymlfront.pm index 6af4e5d6..9c033833 100644 --- a/.library/IkiWiki/Plugin/ymlfront.pm +++ b/.library/IkiWiki/Plugin/ymlfront.pm @@ -391,6 +391,10 @@ sub parse_yml { $content =~ /^(.*?)\[\[!ymlfront.*?\]\](.*?)$/s; $start_of_content = $1; $rest_of_content = $2; + # TODO: This breaks if the YAML string itself contains ]]. + # Workaround: all [[!ymlfront [...]]] directives shall be + # at the end of the files. + $rest_of_content = ''; } } } -- cgit v1.2.3