[WIP] Implement a XML Review UI that allow user to perform actions on XML files

Review Request #9615 - Created Feb. 10, 2018 and updated

Zhaolin Deng
Review Board
master
reviewboard, students

XML files is handled as an uneditble attachments in the current
version.
I implemented a new class XMLReviewUI that
enhence Review board's ability to process XML file.

Features:
- Attributes will be sorted alphabetically
- Tags from the same parent tag will be sorted alphabetically
- Smart indentation for the file

TODO :
write test files



Zhaolin Deng
Zhaolin Deng
Review request changed

Change Summary:

I implemented the tag sorting functionality

Description:

   

XML files is handled as an uneditble attachments in the current

    version.
    I implemented a new class XMLReviewUI that
    enhence Review board's ability to process XML file.

   
  +

Features:

  + - Attributes will be sorted alphabetically
  + - Tags from the same parent tag will be sorted alphabetically
  + - Smart indentation for the file

  +
   

TODO :

~   sort keys
  ~ write test files

-   write test files
-   handle attribute and message with nested tags

Diff:

Revision 3 (+145 -4)

Show changes

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
Loading...