XF 1.4 Template modifications - how do I deal with tabs and carriage returns?

Stuart Wright

Well-known member
So I have this portion of HTML from a template:
Code:
    <xen:if is="{$thread.user_post_count}"><xen:avatar user="$visitor" size="s" img="true" class="miniMe" title="{xen:phrase you_have_posted_x_messages_in_this_thread, 'count={xen:number $thread.user_post_count}'}" /></xen:if>
     </span>
</div>
And I want to insert something before the closing div.
There are tabs and carriage returns. Copying and pasting the template into the 'find' text box doesn't work. I.e. the 'test modification' function fails to insert my new html correctly.
How do I have it search for tabs and carriage returns properly please?
 
When I do it, I simply copy it directly from the template view when creating the mod, tabs and new lines in tact, then paste it into the find box.

Never had any issue yet...

Liam
 
Ah the solution is way simpler than I had imagined. Copying and pasting from the source template does not retain the tabs.
But typing them in manually works fine.
I really didn't expect the find and replace system to work so 'literally'.
Thanks :)
 
Top Bottom