1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixed problem with recipe files containing carriage returns

This commit is contained in:
Jeremy Ruston 2011-12-21 14:03:39 +00:00
parent 0d1a2ef21c
commit 02a2630dd6

View File

@ -145,7 +145,7 @@ Recipe.prototype.sortTiddlersForMarker = function(marker) {
// Process the contents of a recipe file
Recipe.prototype.processRecipeFile = function(recipe,text,contextPath) {
var matchLine = function(linetext) {
var lineRegExp = /^(\s*)([^\s\:]+)\s*:\s*(.+)*$/,
var lineRegExp = /^(\s*)([^\s\:]+)\s*:\s*(.+)*\s*$/,
match = lineRegExp.exec(linetext);
return match ? {
indent: match[1],