Skip to content

Commit a4be231

Browse files
committed
Merge branch 'master' into 1.x
Conflicts: coffee/docUtils.coffee coffee/docxgen.coffee
2 parents 644ef53 + b281a57 commit a4be231

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

coffee/docUtils.coffee

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ DocUtils.defaultParser=(tag) ->
3232
if tag=='.' then return scope else return scope[tag]
3333
}
3434

35-
DocUtils.nl2br = (str,is_xhtml) ->
36-
(str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br>' + '$2');
37-
3835
DocUtils.tags=
3936
start:'{'
4037
end:'}'
@@ -63,8 +60,7 @@ DocUtils.clone = (obj) ->
6360

6461
DocUtils.xml2Str = (xmlNode) ->
6562
a= new XMLSerializer()
66-
content= a.serializeToString(xmlNode)
67-
content.replace /\x20xmlns=""/g, '' #remove all added xmlns="" (these cause the file to be corrupt and was a problem for firefox)
63+
a.serializeToString(xmlNode)
6864

6965
DocUtils.Str2xml= (str,errorHandler) ->
7066
parser=new DOMParser({errorHandler})

0 commit comments

Comments
 (0)