-
Bug
-
Resolution: Duplicate
-
P3
-
18
-
None
If a line is introduced solely to contain markup, then that line should be removed from the resulting output. For example, intuitively it looks like the below snippet should translate to a single line: "Hello, world!".
```
// @start
Hello, World!
// @end
```
There are some corner cases, which we need to think about. For example, what if such a line introduces something to the output?
```
// @replace regex=".*" replacement="Hello, World!"
```
Perhaps, in this case the line should contain something other than markup to begin with:
```
; // @replace regex=";" replacement="Hello, World!"
```
```
// @start
Hello, World!
// @end
```
There are some corner cases, which we need to think about. For example, what if such a line introduces something to the output?
```
// @replace regex=".*" replacement="Hello, World!"
```
Perhaps, in this case the line should contain something other than markup to begin with:
```
; // @replace regex=";" replacement="Hello, World!"
```
- duplicates
-
JDK-8277026 Remove blank lines remaining from snippet markup
-
- Resolved
-