Skip to content

Commit

Permalink
fix inline codeblock creating a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed Jul 7, 2024
1 parent 7696ca7 commit b5327e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
}

group = "dev.dediamondpro"
version = "1.2.1"
version = "1.2.1+localtest1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public abstract class CodeBlockElement<S extends Style, R> extends ChildMovingEl
public CodeBlockElement(@NotNull S style, @NotNull LayoutStyle layoutStyle, @Nullable Element<S, R> parent, @NotNull String qName, @Nullable Attributes attributes) {
super(style, layoutStyle, parent, qName, attributes);
this.codeBlockType = layoutStyle.isPreFormatted() ? CodeBlockType.BLOCK : CodeBlockType.INLINE;
// Update inline variable
this.isInline = isInline();
this.layoutStyle = this.layoutStyle.clone();
this.layoutStyle.setPartOfCodeBlock(true);
}
Expand Down

0 comments on commit b5327e1

Please sign in to comment.