Skip to main content
Participating Frequently
November 4, 2011
Answered

Space character following some user variables disappearing

  • November 4, 2011
  • 2 replies
  • 1271 views

Hi,

I've just started using FrameMaker 10 (Version: 10.0.1.408) to update a set of structured documents, which were originally created using FM 7.2. These documents contain a large number of user variables.  However, in FM 10 sometimes if there was a space character following the variable it gets deleted when you save an reopen the file. If a non-breaking space is used it remains but this is not always a suitable solution.

The variables were all created without any character formats and contain only simple text.

Is this a known problem or am I missing something very obvious?

Best regards,

Nick

This topic has been closed for replies.
Correct answer Russ Ward

... the space is not part of the either the variable definition or the name, it's just a simple space character following the variable in the document.

Yep, that's wierd. I've never seen anything like that. It would be interesting to study before-and-after MIFs,

Try defining a Variable named "char.punc.space" with a definition of just a normal space.

Insert it where the spaces have been disappearing.

______

... wondering if this is a Unicode thing.


Nick,

Any chance that these files are being opened from XML format? If so, maybe take a look at this thread, which explains a new whitespace normalization "feature" in FM10 that can be disabled:

http://forums.adobe.com/thread/908010

Russ

2 replies

tetard911Author
Participating Frequently
November 4, 2011

Okay, I've tested all the files and my whitespace after variable problem is now fixed using the very helpful solution provided by Russ. Due to present time constrains I had to use the quick solution of disabling the new whitespace normalization "feature" of FM10 in the maker.ini file. However, I'll spend some time fixing it properly with the "xml:space" attribute in the elements when I can. Thanks again Russ!

Bob_Niland
Community Expert
Community Expert
November 4, 2011

I assume this trailing blank is in the Variable Definition, and not the Name.

I don't have FM10 to test with, and have never needed to do this in the earlier versions I use, but I can think of one hack that might work-around the behavior:

Put a <Default ¶ Font> after the space.

tetard911Author
Participating Frequently
November 4, 2011

No the weird thing is that the space is not part of the either the variable definition or the name, it's just a simple space character following the variable in the document. I'd already tried the putting <Default ¶ Font> as the last part of the variable because I too thought it might be something to do with that. I'm at a total loss to know what to do now! I'd stay with FM 7.2 but we need to use conditional expressions, which of course were not available in that version.

Bob_Niland
Community Expert
Community Expert
November 4, 2011

... the space is not part of the either the variable definition or the name, it's just a simple space character following the variable in the document.

Yep, that's wierd. I've never seen anything like that. It would be interesting to study before-and-after MIFs,

Try defining a Variable named "char.punc.space" with a definition of just a normal space.

Insert it where the spaces have been disappearing.

______

... wondering if this is a Unicode thing.