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.

Concat words without splitter when more then one `\n` provided

See original GitHub issue

To Reproduce

String raw = new TextCollectingVisitor().collectAndGetText(
    Parser.builder().build().parse("Hello\n\nworld")
);
System.out.println(raw); // Helloworld

Expected behavior System.out.println(raw);

Hello

world

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, Dec 11, 2018

@nikialeksey, fix for this is available. Repo updated, maven updated but may take a while to show up in maven central.

0reactions
nikialekseycommented, Oct 4, 2021

@vsch Hi!

Reproduced again on a version 0.62.2, but with other inputs:

val raw = TextCollectingVisitor().collectAndGetText(
    Parser.builder().build().parse("## Hello\n\n## world")
)
println(raw) // Helloworld

Expected:

Hello

world
Read more comments on GitHub >

github_iconTop Results From Across the Web

Splitting, Concatenating, and Joining Strings in Python
In this beginner-friendly article, you'll learn some of the most fundamental string operations: splitting, concatenating, and joining. Not only will you ...
Read more >
CONCATENATE Excel Range (with and without separator)
In this tutorial, learn how the concatenate formula works and how you can quickly concatenate excel range (with or without separators)
Read more >
How to concatenate strings with different separator every n-th ...
I can write a loop but I am hoping for a more elegant solution as proposed in these related questions using gsub and...
Read more >
4 Ways to Combine Strings in JavaScript | SamanthaMing.com
# 4 Ways to Combine Strings in JavaScript · 1. Template Strings. Problem of Missing space in String concatenation · 2. join(). Customize...
Read more >
CONCAT function in Excel to join text strings - Ablebits
It is categorized under Text functions and is available in Excel for ... discuss the basic use case - concatenating cells without separator....
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