atom-asciidoc-preview icon indicating copy to clipboard operation
atom-asciidoc-preview copied to clipboard

Render crashes when applying tabsize attribute to a tab-formatted text

Open SureSRM opened this issue 6 years ago • 1 comments

Render crashes when applying tabsize attribute to a tab-formatted text

When you have a tab-formatted text and you want to overwrite the default 8 spaces per tab there are two ways to do it:

  • Whole text atribute: By setting :tabsize: 4
  • Per block atribute: By setting [tabsize=4]

The issue is that when any of these methods are applied, te render crashes and shows a

  • Atom version: 1.24.0
  • OS: KDE Neon 5.12
  • asciidoc-preview version: 2.10.4
  • language-asciidoc version: 1.11.0

Screenshots

screenshot_20180228_122559

Steps to reproduce

Try to preview this file: ./test.adoc

= Title
:tabsize: 4

----
{
	"tabbed": {
	}
}
----

Important note

This same file works well with other Asciidoc libs like the bundled in asciidoctor/docker-asciidoctor so you can try yourself by just typing:

docker run --rm -v $(pwd):/documents/ asciidoctor/docker-asciidoctor asciidoctor index.txt

SureSRM avatar Feb 28 '18 11:02 SureSRM

Most likely related to https://github.com/asciidoctor/asciidoctor.js/issues/173

ggrossetie avatar Feb 28 '18 19:02 ggrossetie