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

Fix asciidoc figure with empty title #10047

Closed
wants to merge 1 commit into from
Closed

Fix asciidoc figure with empty title #10047

wants to merge 1 commit into from

Conversation

Maneren
Copy link

@Maneren Maneren commented Aug 1, 2024

I ran into this when converting from docbook's informalfigure (that is a figure without a title) to asciidoc.

For this input presented as example in docbook docs

<informalfigure>
  <mediaobject>
    <imageobject>
      <imagedata fileref="watarun.eps"/>
    </imageobject>
  </mediaobject>
</informalfigure>

the output includes extra leading . that would precede a title but is invalid alone.

.
image::watarun.eps[watarun]

In this PR I added a simple if check for empty title so it correctly outputs

image::watarun.eps[watarun]

@jgm jgm closed this in 3d0faf6 Aug 1, 2024
@jgm
Copy link
Owner

jgm commented Aug 1, 2024

Apologies! I didn't notice that this was a pull request -- I took it to be an issue, and I fixed it myself. Your PR was perfectly good, though. I'm sorry for not noticing that.

@Maneren
Copy link
Author

Maneren commented Aug 1, 2024

LMAO. No problem at all.

I started writing an issue but looked at the code and figured it's this simple, so the description very much reads like an issue at the first glace.

Anyway, thank you for such quick response and glad it's fixed :D

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.

None yet

2 participants