()
| 9211 | var text = "", closing = false, lineSep = cm.doc.lineSeparator(), extraLinebreak = false; |
| 9212 | function recognizeMarker(id) { return function (marker) { return marker.id == id; } } |
| 9213 | function close() { |
| 9214 | if (closing) { |
| 9215 | text += lineSep; |
| 9216 | if (extraLinebreak) { text += lineSep; } |
| 9217 | closing = extraLinebreak = false; |
| 9218 | } |
| 9219 | } |
| 9220 | function addText(str) { |
| 9221 | if (str) { |
| 9222 | close(); |