Skip to content

Let HTML galley prettify be optional#3609

Closed
gamboz wants to merge 1 commit into
openlibhums:masterfrom
sissamedialab:untracked__let-html-galley-prettify-be-optional
Closed

Let HTML galley prettify be optional#3609
gamboz wants to merge 1 commit into
openlibhums:masterfrom
sissamedialab:untracked__let-html-galley-prettify-be-optional

Conversation

@gamboz

@gamboz gamboz commented Jun 21, 2023

Copy link
Copy Markdown
Collaborator

The current behavior of remove_css_from_html is to "prettify" the source of HTML galleys, but this introduces spurious spaces in constructs such as the following:

see [Kato, <a href="#">2014</a>] for...

see [Kato, 
  <a href="#">2014</a>
] for...

(with an extra space between "2014" and the following "]")

The changes proposed here add an optional argument to remove_css_from_html (and to save_galley that invokes it) so that one can decide to avoid "prettification" when saving a galley.

The default value of the argument ensures that the current behavior does not change.

Defaults to "do prettify": does not change current behavior.
@ajrbyers ajrbyers self-requested a review August 18, 2023 13:51
@mauromsl

Copy link
Copy Markdown
Member

closed by #4044 4044

@mauromsl mauromsl closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants