Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
95d6174a
Commit
95d6174a
authored
Jun 15, 2016
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the unused inline_theme feature
parent
96c68c50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
lib/rouge/formatters/html_gitlab.rb
lib/rouge/formatters/html_gitlab.rb
+2
-10
No files found.
lib/rouge/formatters/html_gitlab.rb
View file @
95d6174a
...
@@ -26,15 +26,13 @@ module Rouge
...
@@ -26,15 +26,13 @@ module Rouge
# [+lineanchorsid+] If lineanchors is true the name of the anchors can
# [+lineanchorsid+] If lineanchors is true the name of the anchors can
# be changed with lineanchorsid to e.g. foo-linenumber
# be changed with lineanchorsid to e.g. foo-linenumber
# (default: 'L').
# (default: 'L').
# [+inline_theme+] Inline CSS styles for the <pre> tag (default: false).
def
initialize
(
def
initialize
(
nowrap:
false
,
nowrap:
false
,
cssclass:
'highlight'
,
cssclass:
'highlight'
,
linenos:
nil
,
linenos:
nil
,
linenostart:
1
,
linenostart:
1
,
lineanchors:
false
,
lineanchors:
false
,
lineanchorsid:
'L'
,
lineanchorsid:
'L'
inline_theme:
nil
)
)
@nowrap
=
nowrap
@nowrap
=
nowrap
@cssclass
=
cssclass
@cssclass
=
cssclass
...
@@ -42,7 +40,6 @@ module Rouge
...
@@ -42,7 +40,6 @@ module Rouge
@linenostart
=
linenostart
@linenostart
=
linenostart
@lineanchors
=
lineanchors
@lineanchors
=
lineanchors
@lineanchorsid
=
lineanchorsid
@lineanchorsid
=
lineanchorsid
@inline_theme
=
Theme
.
find
(
inline_theme
).
new
if
inline_theme
.
is_a?
(
String
)
end
end
def
render
(
tokens
)
def
render
(
tokens
)
...
@@ -150,12 +147,7 @@ module Rouge
...
@@ -150,12 +147,7 @@ module Rouge
if
tok
.
shortname
.
empty?
if
tok
.
shortname
.
empty?
val
val
else
else
if
@inline_theme
"<span class=
\"
#{
tok
.
shortname
}
\"
>
#{
val
}
</span>"
rules
=
@inline_theme
.
style_for
(
tok
).
rendered_rules
"<span style=
\"
#{
rules
.
to_a
.
join
(
';'
)
}
\"
#{
val
}
</span>"
else
"<span class=
\"
#{
tok
.
shortname
}
\"
>
#{
val
}
</span>"
end
end
end
end
end
end
end
...
...
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