| Summary: | [client] Sometimes LF is used for line breaks when I expected CR+LF | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Felipe Heidrich <eclipse.felipe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, Silenio_Quarti |
| Version: | 0.2 | ||
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
I have seen this happen, but I was editing the file on a Linux or Mac client and running the server on Windows. The editor always uses the client line delimiter, which is wrong. (In reply to comment #1) > I have seen this happen, but I was editing the file on a Linux or Mac client > and running the server on Windows. The editor always uses the client line > delimiter, which is wrong. If the editor running in a Windows browser will only do CR+LF, then maybe I'm getting myself into this state using Git somehow. I finally figured out what causes this. Using Chrome 12 on Windows: 1. Open the editor, put the caret somewhere 2. Press Shift+Enter. 3. Save. 4. Look at the file in Eclipse. You'll see that LF was inserted in step 2, not the platform delimiter (CR+LF). fixed http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=1657eb956dad825b9813466f521048ae47aa00e5 mark please pull the latest and double check the fix. on my machine, shift+enter was causing funny problems (in the demo.html at least), the lines were not being inserted in the model, so scrolling up and down was causing the lines enter via shift+enter to dissappear. (In reply to comment #4) > mark please pull the latest and double check the fix. Works great, thanks |