Skip to content
Snippets Groups Projects
Commit 3b534a5c authored by leprob001's avatar leprob001
Browse files

Updated tomlini.m.

  / The title of a section is now being trimmed, all whitespaces and tabs
    are being replaced by an underscore.
parent 97569d7b
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,8 @@ end
function [ title, content ] = extractTitleAndContent(pSection)
parts = split(pSection, reservedCharacters.sectionTitleEnd);
title = parts{1};
title = strrep(strtrim(parts{1}), ' ', '_'); % replace space
title = strrep(title, '\t', '_'); % replace tabs
content = strtrim(parts{2});
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment