Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
73c3efda
Commit
73c3efda
authored
Jul 17, 2013
by
Peter Baratta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spacing of comments (pylint)
parent
d63dff8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/lib/calc/preview.py
+1
-1
common/lib/calc/tests/test_preview.py
+2
-2
No files found.
common/lib/calc/preview.py
View file @
73c3efda
...
...
@@ -89,7 +89,7 @@ def variable_closure(variables, casify):
if
varname
in
greek
:
return
LatexRendered
(
ur"\{letter} "
.
format
(
letter
=
varname
))
else
:
return
LatexRendered
(
varname
)
#
.replace("_", r"\_"))
return
LatexRendered
(
varname
)
#
.replace("_", r"\_"))
return
render_variable
...
...
common/lib/calc/tests/test_preview.py
View file @
73c3efda
...
...
@@ -6,7 +6,7 @@ Unit tests for preview.py
import
unittest
import
preview
import
pyparsing
from
mock
import
MagicMock
class
PreviewTestUtility
(
unittest
.
TestCase
):
def
assert_latex_rendered
(
self
,
to_be_tested
,
tall
=
False
,
latex
=
None
,
sans_parens
=
None
):
...
...
@@ -198,7 +198,7 @@ class LatexPreviewTest(unittest.TestCase):
'11*'
,
'f((x)'
,
'sqrt(x^)'
,
'3f(x)'
,
# n
ot 3*f(x)
'3f(x)'
,
# N
ot 3*f(x)
'3|4'
,
'3|||4'
]
...
...
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