Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
431e9bd5
Commit
431e9bd5
authored
Jun 11, 2016
by
LE GAC Renaud
Browse files
Update ExportLatex.js to handle LaTeX special character.
parent
e71ee236
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
.gitignore
.gitignore
+1
-0
static/plugin_dbui/src/grid/mixin/ExportLatex.js
static/plugin_dbui/src/grid/mixin/ExportLatex.js
+3
-0
No files found.
.gitignore
View file @
431e9bd5
*~
.directory
.project
*.pyc
.pydevproject
...
...
static/plugin_dbui/src/grid/mixin/ExportLatex.js
View file @
431e9bd5
...
...
@@ -25,6 +25,7 @@ Ext.define('Dbui.grid.mixin.ExportLatex', {
var
htmlEl
=
domEl
.
dom
,
href
,
li
,
reLaTeX
=
/
[
&#{_}$%
]
/g
,
value
;
// is the cell contains an hyper link
...
...
@@ -32,8 +33,10 @@ Ext.define('Dbui.grid.mixin.ExportLatex', {
// standard string
// shrink empty string to avoid latex processing failure
// handle latex special character
if
(
li
.
length
===
0
)
{
value
=
htmlEl
.
textContent
.
trim
();
value
=
value
.
replace
(
reLaTeX
,
"
\\
$&
"
);
// render the hyper link using latex command href
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment