Scratch deletes the last blank line whenever a user close a document

Bug #1352324 reported by Hugo Martins
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Damian Czaja

Bug Description

I've noticed that Scratch behaves deleting the last blank line of my documents.
When I put two blank lines in the end of the document the behavior happens anyway.
That happens both in Luna stable version and in Freya beta1.

Related branches

affects: pantheon-files → scratch
description: updated
summary: - Scratch delet the last blank line whenever a user close a document
+ Scratch deletes the last blank line whenever a user close a document
Revision history for this message
Cody Garver (codygarver) wrote :

You sure you don't have "strip trailing white space" enabled in extensions?

Changed in scratch:
status: New → Incomplete
Revision history for this message
Hugo Martins (hugobbmartins) wrote :

No Cody, it occurs independently.
Scratch behavior is the same regardless the 'strip' option is enabled or not.
It may be broken to me only, but I use two elementaryOS systems (work and home) and the behavior is the same both machines.

Revision history for this message
Cody Garver (codygarver) wrote :

What version are you using?

apt-cache policy scratch-text-editor

Revision history for this message
Hugo Martins (hugobbmartins) wrote :

Hi Cody,
the version is:

2.0.2.1~r1234-0+pkg53~ubuntu12.04.1

Cody Garver (codygarver)
Changed in scratch:
status: Incomplete → New
Revision history for this message
Otto Robba (otto-ottorobba) wrote :

I can confirm this with Freya beta 1.

1. Create new document
2. Type some stuff, leave a couple of empty lines in the end
3. Close it
4. Open it.

The last line was removed (no further lines seem to get removed though, unless you add more newlines).

Changed in scratch:
status: New → Confirmed
Cody Garver (codygarver)
Changed in scratch:
importance: Undecided → Medium
milestone: none → freya-beta2
Changed in scratch:
milestone: freya-beta2 → none
Damian Czaja (trojan295)
Changed in scratch:
assignee: nobody → Damian Czaja (trojan295)
status: Confirmed → In Progress
description: updated
Damian Czaja (trojan295)
Changed in scratch:
status: In Progress → Fix Committed
Revision history for this message
Cody Garver (codygarver) wrote :

This code has not been merged in trunk so the appropriate bug status is "In Progress"

Changed in scratch:
status: Fix Committed → In Progress
Changed in scratch:
milestone: none → freya-beta2
status: In Progress → Fix Committed
Changed in scratch:
status: Fix Committed → Fix Released
Cody Garver (codygarver)
Changed in scratch:
milestone: freya-beta2 → 2.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.