# \`replace "|" "$verticalBar()"\` doesn't work with \`gotoline 1\`

**URL:** <https://community.mp3tag.de/t/replace-verticalbar-doesnt-work-with-gotoline-1/49893>\
**Category:** Web Sources Discussion\
**Created:** [August 12, 2020, 10:03pm UTC](https://community.mp3tag.de/t/replace-verticalbar-doesnt-work-with-gotoline-1/49893 "2020-08-12T22:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_bug](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@mr\_bug](https://community.mp3tag.de/u/mr_bug)\
**Post date:** [August 12, 2020, 10:03pm UTC](https://community.mp3tag.de/t/replace-verticalbar-doesnt-work-with-gotoline-1/49893/1 "2020-08-12T22:03:02Z")

</div>

I've got a sources script where `replace "|" "$verticalBar()"` is being used in the `[ParserScriptAlbum]` section, however each time `gotoline 1` is called, further occurrences of `|` have not been replaced (as seen by the `debug.out`). After a `gotoline`, using another `replace` will replace `|`s until `gotoline` is encountered again.

The solution for me was to use `gotochar 1` instead (which achieves the same since the script is using `joinuntil` to make the XML into a single line): all `|`s are replaced.

Is this a bug?
