Preservation of white space when you import an html String element in a RichText
Brief overview of the situation:
The program allows the user to change the RichTextEditors and other classes to create presentable documents. The program manages so print of the document when the user wants a preview before printing or to actually feel they select this option in the program menu. Call a preview before print request printable data of all elements in the document and puts them in formats that look more presentable (without editing controls).
Problem:
When the RichTextEditor htmltext is recovered it is imported into an instance of RichText, but white space gets collapsed.
Example:
This (RTE):
Table
The key value
1 2
3 4
5 6
Becomes (RT):
Table
The key value
1 2
3 4
5 6
Code:
If (data is String) {}
var curElem:RichText = new RichText();
importing var: ITextImporter = TextConverter.getImporter (TextConverter.TEXT_FIELD_HTML_FORMAT);
curElem.textFlow = importer.importToFlow (data);
Some changes of color and leaves curElem.textFlow baselineShift
addToPage (curElem);
} else ...
I have tried/noticed:
I tried to put
XML.ignoreProcessingInstructions = false;
XML.ignoreWhitespace = false;
XML.prettyPrinting = false;
and
curElem.textFlow.whiteSpaceCollapse = WhiteSpaceCollapse.PRESERVE;
before that the importer.importToFlow () function is called, but it has not changed the results at all. While changing the value of textFlow.whiteSpaceCollapse would not have done anything since the importer simply creates a new textFlow (I thought I would mention that I tried anyway). When I followed the XML values that I changed during this process, I made sure that they were not reset to true at a given time. That said, I have did not step in depth through the call of any importToFlow() so if it resets the values and changed their back (I don't know why he would do this) I probably would not have noticed.
Sorry if I'm not clear anything, if you need more information please let me know.
-Devin
I logged a bug of the importer TEXT_FIELD_HTML_FORMAT.
Thanks for your report.
Tags: Adobe Open Source
Similar Questions
-
Excluding subfolders when you import pictures into Photoshop Elements 10
In earlier versions of Photoshop Elements you could exclude subfolders when you import photos from files and folders. In version 10 of the "get photos from subfolders" is grayed out. I don't normally want to include subfolders during import. I want only the top folder of the current page. Why the change?
Hello
Just another thought.
I tried now versions 9 and 10 on a Windows 7 system and both work the same. The "include subfolder" box is not active until I select a folder on the right side - a selection on the side left is not activate it.
What operating system do you use?
Have you changed operating systems when you changed to 10 PSE?
Brian
-
Disable the Textfield object when you change the HTML form element
How to disable a texfield if you change the HTML form element? It must be activated at the creation of the new entry form / record.
YogeshSelect 'Read only type of condition' as a value of the element in Expression1 is NOT NULL and in Expression1 put your key primary name of the option to for example P1_EMP_ID
Kind regards
Hari -
external hard drive mounts as the camera when you import videos in FCPX
When I try to import media into FCPX, my external HD rises like a camera and never displays anything (tricks and spins forever).
I have other external HD pairs and they mount as expected when you import. I can get to the external HD in question, it is just when I go to import items I hit a snag. I make changes to the properties of my library and changed back. Still have a problem. See screenshot of the Properties window and the import library. I'm sure I'm missing something simple, but I was not able to sort out what I did. Thanks in advance,
Joan
https://goo.GL/photos/k5i9oMrsvDhgreEF9
P.S. I'm under OX 10.10.5 on a MacPro early 2009
IN the Finder, locate a folder with the name private. If you see a move, it is not at the root or rename it.
RUss
-
original title: codec
When you import a song from itunes for windows moviemaker I get the message (file cannot be imported because the game to version Recentepour the file codec is not installed) how can I fix it?
Install the codec. Really.
Something like GSpot to understand that one.
-
Unable to get sound when you import video clips (.m2ts) Cannon for Windows Live Movie Maker video recorder or on the video file (.wmv). Does anyone have a suggestion as to how this can be done?
Hi RichGraff,
- You have sounds in the VCR of Canon?
- Are you facing problem with this video or other videos as well?
For now, I suggest to import the video clip in Windows Movie Maker, which is an application integrated into Windows Vista and check if you get its in.
Reference:
A problem of importing files into Windows Movie Maker
Import video, photos and audio on Windows Movie Maker
Hope the helps of information. Please post back and we do know.
Concerning
Joel S
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
When you import videos to iPad, video is upside
Import videos
When you import videos to iPad, video is upside down. Impossible to rotate once imported video.
For a unique display, you can use VLC Media Player but if
you want the video turned permanently you can use Windows
Live Movie maker.(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)VLC Media Player
http://www.filehippo.com/download_vlc/
(works on XP/Vista/7)Windows Live Movie Maker can turn the video, but you can
need to convert video to WMV format before you
can import it into Live Movie Maker.Shoot a video of 90 degrees with VLC or Windows Live Movie Maker
http://www.howtogeek.com/HOWTO/14751/rotate-a-video-90-degrees-with-VLC-or-Windows-Live-Movie-Maker/Windows Live Movie Maker - rotate 90 ° right
http://www.howtogeek.com/wp-content/uploads/2010/04/sshot710.PNG -
Premiere Pro freezes when you import MTS media
Hello everyone, I have a problem with my Premiere Pro when you import MTS media.
Last week, I had no problem with this situation. The files are very large, 4 hours of images and about 20 GB, no problem with the import and export, not even an offset when editing.
But for the past 4 days, I had this problem with the same videos, I try to import their dragging and everything but my guard freezing program and then crashing, I can't with other video formats, just the Multilateral trading system, I work with. I read a bunch of solutions, but they do not work for me. I tried to uninstall and install the first, but nothing. I think it had to do with the last Adobe cloud update, but I'm not sure.
IM using Windows 10, but as I said before, this has not happened before. I don't know what to do, I hope someone can help me, please.
Thank you all for the help, you are kind enough to help me.
I contacted Adobe support and they told me it was a problem with the update, and it would be fixed by the following.
What I did to just reinstall the previous version. The MTS files worked smoothly, do not freeze import.
I appreciate your help and the time you took to answer my question.
Thank you for everything.
-
Lightroom important images in the folder users/me/photos/2016.
How could I have a default folder when you import the photos? Example: E/photos/2016
JPcoul1
Save a preset
1. make your options in the panels on the right, choose the folder of "Year" etc.
2. click on the menu drop-down and "Save current settings as a new preset.
-
Lightroom CC will read my raw files from my Canon 50 d? I usually convert my raw files to DNG when you import into LR4
Hi pattyswanson,
Yes, Lightroom CC is Canon 50 d raw files supported: supported by Adobe Camera Raw devices
You can import them directly into Lightroom.
Kind regards
Claes
-
Can add you automatically some than Tags based on folder name when you import into PSE12?
I thought that I used to be able to add tags automatically, based on the name of the folder, when you import? I can't ind now. Was this wishful thinking?
Chris@Badgers wrote:
I thought that I used to be able to add tags automatically, based on the name of the folder, when you import? I can't ind now. Was this wishful thinking?
What is possible when you download from the camera or a card reader, is to use the options in the Advanced section. You can add images to a selected album and you can use a template to import IPTC metadata; right of author and writer.
This is not based on the name of the folder.
What you can do when you have displayed your subfolders in the left panel is to highlight the subfolder and create an 'instant album' with the name of the subfolder.
Ask if you need more details.
-
Can I import words from the file name as keywords in the metadata when you import pictures?
Hello
My apologies if this question has already been asked. I can't find the answer: will / Lightroom can import words filename for my photos as keywords in the metadata when you import the photos from my hard drive? And if so, how can I do this?
I'm new to Lightroom from iPhoto. After reading several articles on the transfer of photos from iPhoto, I exported some 7000 photos in an electronic file on my hard drive. I'm following the advice, sort and rename the photo files on my hard drive to be able to import them into Lightroom in an orderly fashion. It is not too difficult because iPhoto already for most changed the filenames for event names as ordered in iPhoto. I also prefer to do it manually rather than using any iPhoto / Aperture plugin because my iPhoto organization was far from perfect and I have already started to significantly improve by changing the file names.
I'm renaming the files of images with additional information to improve the organisation even more with what would anyway keywords "DATE/NAME/NAME OF PERSON (S) IN THE EVENT PHOTO" so it would be good to not have enter these keywords in the metadata after import for each photo. It's automatic and if not is there a way to do this? All the other tips are welcome!
Thank you
Hi adiscerningeye,
You can create metadata Preset and then apply this preset on import for images.
Link partners: -.
Adobe Photoshop Lightroom Help | Shares of advanced metadata
Adobe Photoshop Lightroom 4 * create and apply metadata presets
Once you create a metadata preset, you must select it during import so it will be applied on all images when importing.
You can also type a few words under key words, so it will work like keywords for this specific to import Images.
Let us know if it helps.
~ Mohit
-
keep the file name when you import pictures
I looked online and all the info that I found are outdated, or, at least, it does not work. When I import photos that have been added in photoshop names, the names do not appear in lightroom. They show only that "Untitled." I'm on a mac using 10.10.3 and the latest update of lightroom. (cloud creative)
Hi Laurie,
When you import, you have the option "Rename files" checked?
If Yes please uncheck it and try to re-import
Also check in Lightroom > preferences > External Editor
You have the ' theexternal file naming change' the Filename value
~ Assani
-
Avoid duplicates when you import XMLs?
There are a few versions, we have fixed the problem to get the duplicate items when you import new projects in another. This was very helpful.
However, I have noticed that when you import XMLs, first does not apply the same level of... discretion
Is it possible to get XMLs for import without creating duplicate items? I found a workaround by first import the XML file into a new project and then import this project first to my main project... but when I'm in a great documentary film which takes 3-4 minutes to open each time, it's not ideal.
This is particularly important for people using the Pluraleyes because organize us images in first and then export to the EP, and then must bring with XMLs, and it would be great if we didn't have to do a bunch of media management manual to avoid duplicates in the project file.
Thank you!R
Hi Ryan,
Get your feature to the appropriate string request by filling out this form: http://adobe.ly/feature_request
Thank you
Kevin
-
No Audio when you import videos in the timeline?
Hello everyone. I came across a problem that I can't get my head around.
I tried to import a set of videos I recorded Via an ingame recording software called Overwolf. The clips will work perfectly with audio on VLC + Windows Media Player drive. However, when you import videos to the Prime Minister to be edited, they do not have any audio file attached. I searched around other topics similar to this one and have had no success.
Any help would be greatly appreciated.
Alex
OK, files not real camera.
Still think you should try the brake hand.
Maybe you are looking for
-
Satellite A660: Can I use HDD recovery after the C formattg
My A660 comes with windows 7.I intend to install Win 7 Pro.I was wondering if I format the C drive leaving 2 partitions (restore) system I'll still be able to use miladi autimatic restoration? - or the start setting will get too erased after the form
-
The VI is attached. This VI takes an enum (interpreted as a U16) and converts it to a single character. This VI entries are disinfected so that they do not all boundary conditions out of. This VI allows to uniquely name a journal folder according to
-
I get this message. Has encountered a transient error. [Dx800423F3]
That's what I get when I try to restore my computer with windows vista. Try a new date of restoration does not work either. What can I do to recover my system restore?
-
HP Photosmart C7180 printer, print too slow
HP Photosmart C7180 prints too slowly
-
How "tile" or several photos for the first selection in cascade? URGENT
I need a program such as Microsoft photo editor that I can use on Windows 7.I need to see and COMPARE the macro shots of flowers and birds next to choose one that is suitable for my for my calendars and photo cards nature. I want to open several pho