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
Léo-Paul Géneau
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
Show 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
# [+lineanchorsid+] If lineanchors is true the name of the anchors can
# be changed with lineanchorsid to e.g. foo-linenumber
# (default: 'L').
# [+inline_theme+] Inline CSS styles for the <pre> tag (default: false).
def
initialize
(
nowrap:
false
,
cssclass:
'highlight'
,
linenos:
nil
,
linenostart:
1
,
lineanchors:
false
,
lineanchorsid:
'L'
,
inline_theme:
nil
lineanchorsid:
'L'
)
@nowrap
=
nowrap
@cssclass
=
cssclass
...
...
@@ -42,7 +40,6 @@ module Rouge
@linenostart
=
linenostart
@lineanchors
=
lineanchors
@lineanchorsid
=
lineanchorsid
@inline_theme
=
Theme
.
find
(
inline_theme
).
new
if
inline_theme
.
is_a?
(
String
)
end
def
render
(
tokens
)
...
...
@@ -149,15 +146,10 @@ module Rouge
if
tok
.
shortname
.
empty?
val
else
if
@inline_theme
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
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