mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-23 13:14:11 +00:00
Fixed problem with recipe files containing carriage returns
This commit is contained in:
@@ -145,7 +145,7 @@ Recipe.prototype.sortTiddlersForMarker = function(marker) {
|
|||||||
// Process the contents of a recipe file
|
// Process the contents of a recipe file
|
||||||
Recipe.prototype.processRecipeFile = function(recipe,text,contextPath) {
|
Recipe.prototype.processRecipeFile = function(recipe,text,contextPath) {
|
||||||
var matchLine = function(linetext) {
|
var matchLine = function(linetext) {
|
||||||
var lineRegExp = /^(\s*)([^\s\:]+)\s*:\s*(.+)*$/,
|
var lineRegExp = /^(\s*)([^\s\:]+)\s*:\s*(.+)*\s*$/,
|
||||||
match = lineRegExp.exec(linetext);
|
match = lineRegExp.exec(linetext);
|
||||||
return match ? {
|
return match ? {
|
||||||
indent: match[1],
|
indent: match[1],
|
||||||
|
Reference in New Issue
Block a user