summaryrefslogtreecommitdiff
path: root/tools/license2rtf.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/license2rtf.js')
-rw-r--r--tools/license2rtf.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/license2rtf.js b/tools/license2rtf.js
index 694e1c6050..4b3d71fe5b 100644
--- a/tools/license2rtf.js
+++ b/tools/license2rtf.js
@@ -122,7 +122,7 @@ function ParagraphParser() {
// Detect separator "lines" within a block. These mark a paragraph break
// and are stripped from the output.
- if (/^\s*[=*\-]{5,}\s*$/.test(line)) {
+ if (/^\s*[=*-]{5,}\s*$/.test(line)) {
flushParagraph();
return;
}
@@ -286,7 +286,7 @@ function RtfGenerator() {
function rtfEscape(string) {
return string
- .replace(/[\\\{\}]/g, function(m) {
+ .replace(/[\\{}]/g, function(m) {
return '\\' + m;
})
.replace(/\t/g, function() {