Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
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
OpenEdx
ansible
Commits
64e61197
Commit
64e61197
authored
10 years ago
by
John Barker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert accidental changes
parent
54f1eebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
20 deletions
+1
-20
hacking/module_formatter.py
+1
-20
No files found.
hacking/module_formatter.py
View file @
64e61197
...
...
@@ -88,24 +88,6 @@ def html_ify(text):
return
t
#####################################################################################
def
strip_formatting
(
text
):
''' Strips formatting
In lists of modules, etc, we don't want certain words to be formatted
Also due to a bug in RST, you can not easily nest formatting
#http://docutils.sourceforge.net/FAQ.html#is-nested-inline-markup-possible
'''
t
=
cgi
.
escape
(
text
)
t
=
_ITALIC
.
sub
(
r"\1"
,
t
)
t
=
_BOLD
.
sub
(
r"\1"
,
t
)
t
=
_MODULE
.
sub
(
r"\1"
,
t
)
t
=
_URL
.
sub
(
r"\1"
,
t
)
t
=
_CONST
.
sub
(
r"\1"
,
t
)
return
t
#####################################################################################
...
...
@@ -328,8 +310,7 @@ def print_modules(module, category_file, deprecated, core, options, env, templat
result
=
process_module
(
modname
,
options
,
env
,
template
,
outputname
,
module_map
,
aliases
)
if
result
!=
"SKIPPED"
:
# Some of the module descriptions have formatting in them, this is noisy in lists, so remove it
category_file
.
write
(
"
%
s -
%
s <
%
s_module>
\n
"
%
(
modstring
,
strip_formatting
(
result
),
module
))
category_file
.
write
(
"
%
s -
%
s <
%
s_module>
\n
"
%
(
modstring
,
result
,
module
))
def
process_category
(
category
,
categories
,
options
,
env
,
template
,
outputname
):
...
...
This diff is collapsed.
Click to expand it.
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