Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

line indentations/breaks are somewhat broken for xml elements #24

Open
adroste opened this issue Sep 3, 2019 · 2 comments
Open

line indentations/breaks are somewhat broken for xml elements #24

adroste opened this issue Sep 3, 2019 · 2 comments
Labels

Comments

@adroste
Copy link

adroste commented Sep 3, 2019

With plugin:

Screenshot 2019-09-03 at 16 21 20

Without plugin:

Screenshot 2019-09-03 at 16 29 10

@adroste adroste changed the title line indentation/break are somewhat broken for xml elements line indentations/breaks are somewhat broken for xml elements Sep 3, 2019
@harnen
Copy link

harnen commented Feb 26, 2020

It might be related, so I post it here. With the current version of reveal.js adding focus library causes the code to be displayed in one line only. Any idea how to solve it?

Without the library:
before
With the library:
after

@bnjmnt4n bnjmnt4n added the bug label Apr 8, 2020
@bnjmnt4n
Copy link
Owner

bnjmnt4n commented Apr 8, 2020

Sorry for the late reply:

@progmem64 not sure what the issue is there, a small repro could be helpful. Are you using tabs or space for indentation? Will try to look into it ASAP.

@harnen: See https://github.com/bnjmnt4n/reveal-code-focus#styling. You need to add some styles since each line of code is converted into a span which are not inline elements, hence the code is merged into one long line. Try the following:

.line { display: block; }
.line.focus { background: yellow; }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants