summaryrefslogtreecommitdiff
path: root/.library
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2010-11-26 11:37:26 +0100
committerThomas Schwinge <thomas@schwinge.name>2010-11-26 11:37:26 +0100
commit7280981382b9dabd94874b9dca6591e7d351fc36 (patch)
tree3825fd5f5d104b7dcf7dcaaec2d8a65d4902a222 /.library
parentcc58caf1beec20e4fcc0877119c74e616fa6af1f (diff)
.library/IkiWiki/Plugin/ymlfront.pm: Workaround for YAML strings containing ]].
For now, all [[!ymlfront [...]]] directives shall be at the end of the files.
Diffstat (limited to '.library')
-rw-r--r--.library/IkiWiki/Plugin/ymlfront.pm4
1 files changed, 4 insertions, 0 deletions
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 = '';
}
}
}