Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTML5 syntax to style table #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
o the content of table generated by bibtex2html is now centered with CSS
instead of obsolete align and valign properties
o default DOI prefix is now https://doi.org/, as recommended in the official
crossref guidelines
o option "--expand" also expands each abbreviation between keyword "and" in
Expand Down
4 changes: 2 additions & 2 deletions translate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ let close_table ch = match !table with

let open_row ch = match !table with
| Table ->
Html.open_balise ch "tr valign=\"top\""; output_string ch "\n";
Html.open_balise ch "td align=\"right\" class=\"bibtexnumber\"";
Html.open_balise ch "tr style=\"vertical-align:top\""; output_string ch "\n";
Html.open_balise ch "td style=\"text-align:right\" class=\"bibtexnumber\"";
output_string ch "\n"
| DL ->
Html.open_balise ch "dt"; output_string ch "\n"
Expand Down