projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb55996
)
fix missing replacement for line continaution in copy to clipboard script
author
Dan Allen
<dan@opendevise.com>
Mon, 21 Dec 2020 00:23:05 +0000
(17:23 -0700)
committer
Dan Allen
<dan@opendevise.com>
Mon, 21 Dec 2020 00:23:05 +0000
(17:23 -0700)
src/js/06-copy-to-clipboard.js
patch
|
blob
|
history
diff --git
a/src/js/06-copy-to-clipboard.js
b/src/js/06-copy-to-clipboard.js
index
ab1de52
..
155621d
100644
(file)
--- a/
src/js/06-copy-to-clipboard.js
+++ b/
src/js/06-copy-to-clipboard.js
@@
-47,7
+47,7
@@
var cleanupRx = /( ) *\\\n *|\\\n( ?) */g
var cmds = []
var m
- while ((m = cmdRx.exec(text))) cmds.push(m[1].replace(cleanupRx, '$1'))
+ while ((m = cmdRx.exec(text))) cmds.push(m[1].replace(cleanupRx, '$1
$2
'))
return cmds.join(' && ')
}