Skip to content

Commit

Permalink
Also update HTML_ROFF_ENTITIES.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberfunk committed Mar 6, 2013
1 parent 1fdf5b8 commit 47eb2ad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/ronn/roff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def macro(name, value=nil)
end

HTML_ROFF_ENTITIES = {
'•' => '\(bu',
'•' => '\[ci]',
'&lt;' => '<',
'&gt;' => '>',
'&nbsp;' => '\~',
Expand Down
24 changes: 12 additions & 12 deletions test/entity_encoding_test.roff
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,37 @@ Your output <i>might</i> look like this:
.P
Here\'s some special entities:
.
.IP "\(bu" 4
&bull; \(bu
.IP "\[ci]" 4
&bull; \[ci]
.
.IP "\(bu" 4
.IP "\[ci]" 4
&nbsp; \~
.
.IP "\(bu" 4
.IP "\[ci]" 4
&copy; \(co
.
.IP "\(bu" 4
.IP "\[ci]" 4
&rdquo; \(rs
.
.IP "\(bu" 4
.IP "\[ci]" 4
&mdash; \(em
.
.IP "\(bu" 4
.IP "\[ci]" 4
&reg; \(rg
.
.IP "\(bu" 4
.IP "\[ci]" 4
&sec; \(sc
.
.IP "\(bu" 4
.IP "\[ci]" 4
&ge; \(>=
.
.IP "\(bu" 4
.IP "\[ci]" 4
&le; \(<=
.
.IP "\(bu" 4
.IP "\[ci]" 4
&ne; \(!=
.
.IP "\(bu" 4
.IP "\[ci]" 4
&equiv; \(==
.
.IP "" 0
Expand Down
6 changes: 3 additions & 3 deletions test/nested_list_with_code.roff
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.TH "NESTED_LIST_WITH_CODE" "" "January 1979" "" ""
.
.IP "\(bu" 4
.IP "\[ci]" 4
\fBtoggle_status\fR
.
.IP "\(bu" 4
.IP "\[ci]" 4
Toggle the display of the status bar\.
.
.IP "" 0

.
.IP "\(bu" 4
.IP "\[ci]" 4
\fBspawn <executable> <additional args>\fR TODO explain path\-alike expansion
.
.IP "" 0
Expand Down

0 comments on commit 47eb2ad

Please sign in to comment.