tracker issue : CF-3944603

select a category, or use search below
(searches all categories and all time range)

custom tag inserts white space in font and behind output

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): lannoye xavier / lannoye xavier (lannoye xavier)

Created: 02/24/2015

Components: Core Runtime

Versions: 10.0

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Linux All

Vote Count: 0

Problem Description: 
I wrote a custom tag to output text regarding user's frontend language. I noticed that when I use my tag into a link, the line of the link was a little bigger than the text. 

Steps to Reproduce: 
please find attached a light version of my custom tag, and an index file to test it.

Actual Result:
<h1>test tag</h1>
<a href=""> customtag says: toto </a> <!-- see the white spaces here -->

Expected Result:
<h1>test tag</h1>
<a href="">customtag says: toto</a> <!-- white spaces are gone -->

Any Workarounds: 
putting the custom tag content on a single line seems to solve the problem. However this is not very nice.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3944603

External Customer Info:
External Company:  
External Customer Name: lannoye
External Customer Email:  
External Test Config: My Hardware and Environment details: 

issue appears on every configuration: cf server installed onto windws, linux, with apache2...


  1. February 24, 2015 00:00:00:


forgot to mention of course I tested with cfsettings, cfprocessingdirective, cfsilent, ... without success thanks for your time
Comment by External U.
8287 | February 24, 2015 08:01:24 AM GMT
custom tags capture all the text from within their pair, including any indentation in your source code. It cannot tell what you do and do not want of that (and generally it wouldn't matter), so if you need to write code to get rid... that's what you need to do. This is just "one of those things", I think. And not really a bug. Without you supply an actual repro including the code that implements a tag and code calling the tag that demonstrates what you see and how you want it different, it's difficult to help you further.
Comment by External U.
8288 | February 24, 2015 04:22:53 PM GMT
strangly custom tag include cariage returns in the generated html result. which then cause this cosmetic behaviour. If I do not insert blanks or cr in front or behind my custom tag, there shouldn't be either on the cfm response.
Comment by External U.
8289 | February 25, 2015 03:10:32 AM GMT
This has been fixed in the next version of ColdFusion.
Comment by Suchika S.
8290 | June 12, 2015 01:32:40 AM GMT