# How do you use remap to insert a newline?

**URL:** <https://meta.discourse.org/t/how-do-you-use-remap-to-insert-a-newline/100531>\
**Category:** Product Support\
**Created:** [26 באוקטובר,‏ 2018,‏ 9:29am UTC](https://meta.discourse.org/t/how-do-you-use-remap-to-insert-a-newline/100531 "2018-10-26T09:29:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![lxk](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lxk](https://meta.discourse.org/u/lxk)\
**Post date:** [26 באוקטובר,‏ 2018,‏ 9:29am UTC](https://meta.discourse.org/t/how-do-you-use-remap-to-insert-a-newline/100531/1 "2018-10-26T09:29:26Z")

</div>

Hi Team,

I Imported a phpBB forum which has a whole bunch of broken hotlinked images from a Coppermine gallery in the user’s posts.

I got copies of the original images from an old backup, have re-hosted them and I’ve had success using the posts remap and delete rakes to fix up mangled post formatting so Discourse will inline the images, and then crawl them.

I’ve hit a bit of a wall with some formatting, does anyone know how I can squeeze a newline between these image URLs?

`http://picture.url/image.jpghttp://picture.url/image2.jpg`

I tried

`rake posts:remap['.jpghttp://','.jpg<br/>http://']`

This works visually, though because the text is still all in a single string, it’s not inlining the image. I’ve validated putting a newline between the URLs works, there’s just too many to do by hand - is there a trick I’m missing?

Ideas?

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-use-remap-to-insert-a-newline/100531)._
