Making WordPress.org

Opened 23 months ago

Last modified 6 months ago

#6383 reopened enhancement

Highlight start/end spaces and single space strings

Reported by: psmits1567's profile psmits1567 Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords:
Cc:

Description

Currently it is not properly visible if a start/end space or single space is present, when you are within the editor. It would be great if that position is highlighted within the editor

Change History (5)

#1 @dd32
23 months ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi @psmits1568,

This should probably be implemented upstream in GlotPress itself, rather than a translate.WordPress.org-specific thing.

It looks like they've got an open issue for this though:
https://github.com/GlotPress/GlotPress/issues/863

#2 follow-up: @psmits1567
23 months ago

Hi Dion,

If you are in the editor and use GlotDict, you get a warning for the missing blank. But it would be great if you could see that before saving your suggestion. Showing it in the preview would already help, but in my opinion if it is also shown within the editor in the original it would even be better

#3 in reply to: ↑ 2 @dd32
23 months ago

  • Reporter changed from psmits1568 to psmits1567
  • Resolution reported-upstream deleted
  • Status changed from closed to reopened

Replying to psmits1567:

I agree.

However, the ticket asked for It would be great if that position is highlighted within the editor which is the Upstream GlotPress ticket - That's why I closed it in favour of that.

Notably though.. There's two areas where we handle leading/trailing new lines but NOT leading/trailing SPACES

Adding support for spaces to both of those isn't out of the question at all, but that wasn't what was originally proposed in this ticket.

#5 @psmits1567
6 months ago

Issue one is resolved, currently in single lines if a blanc is present before or after, then it is highlighted

Note: See TracTickets for help on using tickets.