Skip to content

Commit

Permalink
Added formatting to keep indentation in notes
Browse files Browse the repository at this point in the history
Change provided by Tomas-M
  • Loading branch information
pasetti committed Apr 23, 2021
1 parent 45aa0ff commit d2fa136
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,10 @@
{
state.text.attr("text", buildStateText(state));
}


// force pre-formated whitespace for Notes
if (stateIsNote(state)) $(state.text.node).css("white-space","pre");

var y=0
var tspans=state.text.node.childNodes;

Expand Down

0 comments on commit d2fa136

Please sign in to comment.