Commit 758860c
committed
Normalize line endings in resource stream content to LF
Replace the buffer-copy approach with BufferedReader.readLine(), which
strips CR/LF and reassembles lines with LF only - the same pattern all
other resource loaders in the codebase already use. This also removes
the now-unused copy() utility method.1 parent f16ac81 commit 758860c
1 file changed
Lines changed: 7 additions & 15 deletions
File tree
- flexmark-ext-admonition/src/main/java/com/vladsch/flexmark/ext/admonition
flexmark-ext-admonition/src/main/java/com/vladsch/flexmark/ext/admonition/AdmonitionExtension.java
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 172 | | |
181 | 173 | | |
182 | 174 | | |
| |||
0 commit comments