/    Sign up×
Community /Pin to ProfileBookmark

removing the space after a span tag

Hi there,

I am doing some work with open XML docs – essentially sucking out information and putting it on the web, this is the problem. I have to check every “region” – the element is “w:r” – I don’t know why or how but it regions can be created anywhere in a paragraph. For example the text “Projected Growth” might be broken up into three regions with logical stop points. Now – each time I find a region, I have to check the formatting if I find the element “<w:b/>” I insert “<span style=”font-weight: bold; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px”>. It works fine but after each span you get a space. I can’t seem to get rid of that space.

Anyone know how to do that. It doesn’t seem like there is a space before it – just after it.

Thanks a lot!!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMay 09.2008 — SPAN tags are inline elements, and are rendered on a text line. The space you are seeing after the SPAN is actually a keyboard space in the HTML source code.
×

Success!

Help @r0k3t spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...