Skip to content

Commit d754aa9

Browse files
committed
Version 1.0.2
See changelog
1 parent 22f4ae9 commit d754aa9

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## LaTeX Table Editor ##
22

3-
**Version 1.0.1**
3+
**Version 1.0.2**
44

55
This is the GitHub page of an Open Source WYSIWYG table editor that exports to multiples languages including LaTeX, Plain TeX, CSV, HTML, BBCode, Eplain, PreTeXt and Markdown.
66

src/changelog.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ Legend
66
[#] Fixed
77
Dates use a YYYY/MM/DD format.
88

9-
Version 1.0.1 (2018/03/06)
9+
Version 1.0.2 (2018/04/17)
10+
===========
11+
12+
| Note on this release :
13+
| Fix an issue with encoding and CSV export
14+
15+
CSV EXPORT
16+
17+
[#] Fixed encoding issue with <, >, & and " characters
18+
19+
Version 1.0.1 (2018/03/26)
1020
===========
1121

1222
| Note on this release :
@@ -52,7 +62,7 @@ LATEX EXPORT
5262
[#] Fixed an issue where background color could leak inside double borders
5363
[#] Color of the vertical dashed/dotted left border of the first column could be ignored if it was a named color
5464
[#] Fixed an issue where the background color was not applied for multiline cells and cells with bullets points
55-
[#] Fixed useless code when vertical rules from Booktab (lol) were used
65+
[#] Fixed useless code when vertical rules from Booktabs (lol) were used
5666
[#] Caption did not work with longtable
5767

5868
IMPORT MODULE

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ <h5>Indentation</h5>
787787
</script>
788788
<script type="text/javascript" src="ntc.js">
789789
</script>
790-
<script type="text/javascript" src="colorpicker.js">
790+
<script type="text/javascript" src="colorPicker.js">
791791
</script>
792792
</body>
793793

src/toCSV.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
else{
1111
html = table.getHTML(cell);
1212
}
13-
var text = html.replace(/<\s*br\s*\/?\s*>/gi, "\n").replace(/<[^>]+?>/g,"");
13+
var text = html.replace(/<\s*br\s*\/?\s*>/gi, "\n").replace(/<[^>]+?>/g,"").replace(/\&(lt|gt|amp|quot);?/gi, function(total, name){
14+
if(name == "lt"){ return "<" }
15+
if(name == "gt"){ return ">" }
16+
if(name == "amp"){ return "&" }
17+
if(name == "quot"){ return "quot" }
18+
});
1419
if(/[\n,"]/.test(text)){
1520
text = '"'+text.replace(/"/,"\\\"")+'"';
1621
}

0 commit comments

Comments
 (0)