Forums / Setup & design / Space after link in content area

Space after link in content area

Author Message

paul bolger

Saturday 27 March 2010 4:24:58 am

I'm getting a space inserted into my content between link content and following punctuation:

In edit mode I get

 <link>blah</link>, blah blah

and in the site I get

 <a href="#">blah</a> , blah blah

Looking in template debug indicates that the space isn't being created by the link template - so what's causing it?

Paul Bolger

Robin Muilwijk

Saturday 27 March 2010 11:41:03 am

Hi Paul,

What version are you using, of eZ? I just tested this in an almost clean eZ 4.2 with sample data, added a link with the editor and it looks okay to me.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

paul bolger

Saturday 27 March 2010 3:28:50 pm

Hi Robin,

The site in question is running 4.2, but I've just tested it on a virgin copy running 4.3.0beta2 (running ezflow) and I'm getting the same problem.

To duplicate add, with editor disabled, something like

<link href="eznode://2">Here's my link</link>, and here's some other text.

and you get (how <b>do</b> you break out of literal in this thing?):

<a href="#">Here's my link</a> , and here's some other text.

Paul Bolger

Robin Muilwijk

Sunday 28 March 2010 12:41:28 pm

Hi Paul,

I've been playing with this, trying to trace the issue. I can confirm this is a problem in 4.3.0. If I look at the debug, the standard template files paragraph.tpl and link.tpl output this code but they look okay.

It does look like a bug though, can you file this on the issue tracker?

Thanks Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

paul bolger

Monday 29 March 2010 4:46:27 am

Thanks Robin,

Issue filed. I've checked paragraph.tpl and link.tpl too, with no luck.

Paul

Paul Bolger

Peter Keung

Wednesday 14 April 2010 11:26:31 am

We had the same problem and could not see a problem with link.tpl in a Linux text editor. We even did some investigation into the ezxmloutput handler but could not find a problem. However, in a Windows text editor there was a blank second link in link.tpl. We removed the blank second line in the Windows text editor and the problem is gone.

We moved on after 10 minutes of trying to get the Linux text editor to display that blank second line. Are there any line break gurus around?

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Damien Pobel

Thursday 15 April 2010 8:42:07 am

Hi,

I had the same problems because of the behaviour of vim that adds an EOL char at the end of the last line of every file.

See http://pwet.fr/blog/le_bug_de_l_espace_supplementaire (in french) or http://translate.google.fr/translate?u=http://pwet.fr/blog/le_bug_de_l_espace_supplementaire&sl=fr&tl=en&hl=&ie=UTF-8

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Danny C

Monday 27 September 2010 2:57:29 am

Hi

I'm having this same problem with the space after my links, I've followed the above link but not really understanding it.

I'm guessing "VIM" is an extansion of some sort but i don't now where it is or how to edit it.

Hope you can help

Thanks

Steven E. Bailey

Monday 27 September 2010 4:34:41 am

Vim is a text editor.

What you'll have to do is go to whatever template is displaying the link - i.e. design/standard/templates/content/datatype/view/ezurl.tpl

What is happening is that there is an extra line added to the template that is not visible with some text editors - like the vim text editor. This adds the space. You'll have to remove that extra line.

And yeah, I had this happen a while back and the templates going back to 3.9 had the extra line feed (that's where I stopped looking).

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Danny C

Monday 27 September 2010 9:53:19 am

Hey

Thanks very much for your reply.

I followed your instructions and found the extra line in that tpl but it did not fix the problem. I then had a look at this file "design/standard/templates/content/datatype/view/xmltags/link.tpl" which also had an extra line, i deleted it and it worked fine, thank you for helping me out.

Much appreciated

over & out

eZ debug

Timing: Jan 18 2025 04:25:22
Script start
Timing: Jan 18 2025 04:25:22
Module start 'content'
Timing: Jan 18 2025 04:25:22
Module end 'content'
Timing: Jan 18 2025 04:25:22
Script end

Main resources:

Total runtime0.2457 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0115 588.8672180.8281
Module start 'content' 0.01150.0050 769.6953106.0078
Module end 'content' 0.01650.2291 875.7031534.3281
Script end 0.2456  1,410.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00411.6542200.0002
Check MTime0.00150.5941200.0001
Mysql Total
Database connection0.00170.709410.0017
Mysqli_queries0.191778.03161410.0014
Looping result0.00200.81861390.0000
Template Total0.228893.110.2288
Template load0.00070.281710.0007
Template processing0.228192.842810.2281
Override
Cache load0.00050.196210.0005
Sytem overhead
Fetch class attribute can translate value0.00080.335410.0008
XML
Image XML parsing0.00030.109110.0003
General
dbfile0.00200.8180200.0001
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs