Bug 566117 - XML closing tags in a wrong position
Summary: XML closing tags in a wrong position
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-17 02:41 EDT by Maksim Sasnouski CLA
Modified: 2020-08-17 11:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Sasnouski CLA 2020-08-17 02:41:46 EDT
The automatic closing of xml tags (with </>) on control+space creates a strange code mix like this: 

<operation </operation>active="true">

To reproduce follow these steps:
- create XML file
- write any open xml tag, f.e. <operation> in a file
- add an attribute to the open xml tag f.e. <operation active="true;">
- place the cursor directly after the xml tag (no space in between)
- press ctrl+space and autocomplete the xml tag
- result: <operation </operation>active="true">

Another steps:
- create XML file
- write any open xml tag, f.e. <operation> in a file
- place the cursor directly after the xml tag (no space in between)
- press ctrl+space and autocomplete the xml tag
- result: </operation>

Note: If a space or any subelement is added after the open xml tag, the feature works correctly.
Comment 1 Rolf Theunissen CLA 2020-08-17 11:57:12 EDT
Which XML editor are you using? There are a few around now, none of them are provided by Eclipse Platform. So this information is needed to move this bug to the correct place.

'Shift-Alt F1' can give you a clue which editor it is.