whitespace

How do I get rid of white background on my SWF file?

I'm putting a SWF file into an HTML page in GoLive, and even though all my code and SWF file are set to a blue background, there is a quick second during the loading of each page where my entire SWF document is completely white on top of the blue HTML background. I don't know if this is making sense, but check out www.eloquentcreative.co...

&nbsp character not displaying correctly in Java

I have tried "&nbsp;&nbsp;" to display two spaces in a standard output Java String. Trying System.out.println("__"); <---- (two spaces, but, obviously, it trims it down to one space, hence the underscore) I imagine there is a way to escape the &nbsp;, but I can not figure it out nor find help online. Searching for it is ironic becau...

How do I manage optional whitespace in ANTLR?

I am trying to parse a data file in ANTLR - it has optional whitespace exemplified by 3 6 97 12 15 18 The following shows where the line starts and ends are. There is a newline at the end and there are no tabs. ^ 3 6$ ^ 97 12$ ^ 15 18$ ^ My grammar is: lines : line+; line : ws1 {System.out.println("WSOPT :"+$ws1.text...

How do you configure JBoss to trim additonal whitespaces generated by JSPs?

Getting lots of additional whitespace in the html output, looks like its because of the JSP tags =/ I saw this referenced somewhere: <init-param> <param-name>trimSpaces</param-name> <param-value>true</param-value> </init-param> That should put it in web.xml, I tried that but that didn't seem to work. Maybe I'm not putting it in t...

Cakephp generating xml error - blank space

Hi, I am trying to generate a dynamic xml document in CakePHP to output to the browser. Here is my controller code: Configure::write ('debug', 0); $this->layout = null; header('Content-type: text/xml'); echo "<?xml version=\"1.0\"?>"; View is something like this: <abc> something </abc> The output is probably as expected: <?...

View whitespace in VS2008

After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual Studio, go to settings and I can't find an option to make this visible. Is this possible in VS2008? ...

Unidentified whitespace character in Java

Hi, On extracting some html from a web page, I have some elements containing text that end in an unknown or non-matching whitespace character (ie does not match "\\s"): <span>Monday </span> In java, to check what this character is, I am doing: String s = getTheSpanContent(); char c = s.charAt(s.length() -1); int i = (int) c; and t...

Subversion whitespace-removal commit hook

Jeff Atwood wrote about whitespace and suggested creating commit hook which removes trailing whitespace at the ends of lines and files. I've searched, but I haven't found a clear example of using a pre-commit hook to modify files like this. Do you have a script which you'd like to share? ...

Scala: XML Whitespace Removal?

Anyone know of a good scala library to do whitespace removal/compaction from XML? <foo> <bar>hello world</bar> <baz> xxx </baz> </foo> to: <foo><bar>hello world</bar><baz>xxx</baz></foo> -harryh ...

Unwanted vertical space after Flash object

See the code below: <div>Lorem ipsum dolor sit amet</div> <object type="application/x-shockwave-flash" data="banner.swf" width="965" height="120" ></object> <div>Consectetur adipiscing elit</div> Viewing it in either Gecko, Webkit or Presto, an unintentional vertical space occurs a...

Checking string for whitespace

Is there a way I can check for whitespace?For example, I DO NOT want to check for whitespace such as this... $string = "The dog ran away!"; and have it output Thedogranaway! I want to check if there if the entry is ALL whitespace and whitespace only? and have it output the error! Basically, I don't want to be able to enter all whit...

How do I prevent HTML source formatting from affecting output?

It looks like extra line breaks in the HTML code may add unwanted spaces in the final output. I always thought that no matter how I layout my HTML code, it will not affect the way the rendered result looks like. But here is an example: <h2> <a href="#">Hello.</a>World </h2> Will display: "Hello.World" - all looking good as expect...

how to make svn diff show only non-whitespace line changes between two revisions

I can get diffs between two revisions using something like svn diff -r 100:200 > file.diff But the problem is that there are many lines that show up due to change in whitespace. Is there a way to only write those lines that actually change in a significant way and not just in whitespace? ...

VB/VBA Variable Declaration Coding Standard - White Space

What is the significance of declaring variables in VB/VBA like so: Private m_sName As String Private m_lAge As Long As opposed to; Private m_sName As String Private m_lAge As Long I am working on a project which up to now uses the latter, and has done since long before I joined the project. Two new developers have...

Stripping whitespace from a JavaScript "copy-clipboard" function for Chrome/Safari

I've got a copy-clipboard icon on a website, which, when clicked, invokes the following JavaScript (among other): var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false; var elem = document.getElementById(codeID); var content; // strip out all html tags and just get the text if (!hasInnerTe...

Use of Vertical Whitespace

My intention in this question is not to be pedantic, but rather to explore an overlooked axis of an important topic (the use of whitespace). Much debate and care has been put into the use of horizontal whitespace, indenting after a conditional, a space between an if and parenthesis, etc. In fact the issue is considered to be so importan...

spaces in my wix source path

hi in my .wxs file the File tag Source attribute, the path has a spaces in it. <File Id="_uploads.UserImport.EDS_UserImport.xls" Name="EDS_UserImport.xls" Source="C:\**Documents and Settings**\kle\Desktop\OspreyMSIGenerator\OspreyMSIGenerator\Published\EDSContainer\uploads\UserImport\EDS_UserImport.xls"></File> i get this error candle...

SSRS - eliminate stray whitespace between textboxes on a report

I have 4 stacked textboxes in the body of an SSRS report and am getting a stray space / extra line between textboxes 3 & 4. This is for an address block - name / title / email / website. Can't put it in a single textbox with intervening vbcrlf tokens because the email and website are links. I've tried formatting it to remove vertica...

How to trim whitespace from a data-bound XML element in WPF using XPath?

How can the whitespace at the start and end of the content of an XML element be removed when binding to the element using XPath in WPF? ...

Remove whitespace, but do so last?

I am attempting to parse Lua, which depends on whitespace in some cases due to the fact that it doesn't use braces for scope. I figure that by throwing out whitespace only if another rule doesn't match is the best way, but i have no clue how to do that. Can someone help me? ...