Code formatting adds an empty line between listing and its caption
See original GitHub issueGiven the following document:
= Title
..gitattributes
----
* -text
----
Execute Code->Reformat Code IDE action (or just press CTRL+ALT+L).
Expected: text stays as-is, because it is already well-formatted.
Actual: empty is inserted between listing caption and listing block, so resulting document is this:
= Title
..gitattributes
----
* -text
----
AsciiDoc Plugin Version: 0.30.34
IDE Name and Version: RubyMine 2019.3.1 Build #RM-193.5662.59, built on December 18, 2019 Runtime version: 11.0.5+10-b520.17 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
lstlisting - giving source - smaller font, alongside caption ...
@Ignasi The problem with figure is that I need that smaller font caption ( \textsuperscript or \footnotesize ) between the code and the...
Read more >Basic writing and formatting syntax - GitHub Docs
You can create a new paragraph by leaving a blank line between lines of text. Footnotes. You can add footnotes to your content...
Read more >Adding Spaces Between Paragraphs or Bullet Points in ...
Shift+Enter – Use the Shift Key and Enter Key for a single space between lines and avoid a paragraph (double line spacing).
Read more >Code listing - Overleaf, Online LaTeX Editor
This command can be used within your document to switch to a different style if needed. Captions and the list of Listings. Just...
Read more >The Black code style - Black 22.12.0 documentation
Black does not format comment contents, but it enforces two spaces between code and a comment on the same line, and a space...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve pushed a change that now supports titles starting with a dot. An example similar to the one you provided is now part of the test suite. I therefore close this issue. I’ll update this issue once a pre-release is available.
Pre-release 0.30.38 is available. Please give it a try and let me know if this works for you.
The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.