Skip to content
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
6 changes: 1 addition & 5 deletions html.ml
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,7 @@ and flush_out = flush_out
and close_group = close_group
and open_aftergroup = open_aftergroup
and open_group = open_group
and insert_block s attr =
if find_prev_par () then
warning "Ignoring \\centering or \\ragged..."
else
insert_block (find_block s) attr
and insert_block s attr = insert_block (find_block s) attr
and insert_attr s = insert_attr (find_block s)
and erase_mods = erase_mods
and open_mod = open_mod
Expand Down
1 change: 1 addition & 0 deletions html/hevea.hva
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
\newstyle{.parbox}{
box-sizing: border-box;
display: inline-block;
text-align: justify;
text-indent: 0;
}
\def\@parbox@alignment@spec@bottom{b}
Expand Down
9 changes: 6 additions & 3 deletions ragged2e.hva
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
\let\RaggedRight\raggedright
\let\RaggedLeft\raggedleft
\let\Centering\centering
\let\endCentering\relax
\let\RaggedLeft\raggedleft
\let\endRaggedLeft\relax
\let\RaggedRight\raggedright
\let\endRaggedRight\relax
\newstyle{.justify}{text-align:justify;margin-left:auto;margin-right:auto;}
\newcommand{\justifying}{\@insert{div}{\envclass@attr{justify}}}
\newenvironment{Center}{\begin{center}}{\end{center}}
\newenvironment{FlushLeft}{\begin{flushleft}}{\end{flushleft}}
\newenvironment{FlushLeftRight}{\begin{flushright}}{\end{flushright}}
\newenvironment{FlushRight}{\begin{flushright}}{\end{flushright}}
\setenvclass{justify}{justify}
\newenvironment{justify}{\@open{div}{\envclass@attr{justify}}}{\@close{div}}
1 change: 1 addition & 0 deletions text/hevea.hva
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
\newcommand{\centering}{\@insert{align}{center}}
\newcommand{\raggedleft}{\@insert{align}{right}}
\newcommand{\raggedright}{\@insert{align}{left}}
\let\justifying\raggedright
%%%%%%%%%%% Figures
%For figure & tables
\newcommand{\@open@quote}[1]{\@open{quote}{}}
Expand Down