question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code formatting adds an empty line between listing and its caption

See original GitHub issue

Given 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ahus1commented, Feb 14, 2020

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.

0reactions
ahus1commented, Feb 17, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found