Menu

#563 Create possibility to keep empty lines during 'read'

v1.1.x
closed
None
v1.1.3
Change Request
2021-03-22
2021-02-22
Erik Hänel
No

If one uses read, then empty lines are stripped from the output. However, this is not always desireable. Introduce a new option (like keepdim) to keep the empty lines.

Analysis:

Simple and straightforward implementation. However, has to be ported to the write command as well for symmetry reasons.

Implementation:

  • Implementation: Implemented as indicated by the analysis.
  • Revision: [r834]
  • Implementation test: Files were read and written while keeping their empty lines.

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [x] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [ ] not needed
  • Language files:
    • [ ] corresponding language files updated
    • [x] not needed

Tests:

Added to the SW tests. Tests run without any deviation.

Related

Commit: [r834]

Discussion

  • Erik Hänel

    Erik Hänel - 2021-02-22
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2021-02-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,23 @@
     If one uses `read`, then empty lines are stripped from the output. However, this is not always desireable. Introduce a new option (like `keepdim`) to keep the empty lines.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2021-02-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     If one uses `read`, then empty lines are stripped from the output. However, this is not always desireable. Introduce a new option (like `keepdim`) to keep the empty lines.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +Simple and straightforward implementation. However, has to be ported to the `write` command as well for symmetry reasons.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2021-02-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,20 +4,20 @@
     Simple and straightforward implementation. However, has to be ported to the `write` command as well for symmetry reasons.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: Implemented as indicated by the analysis.
    +* Revision: [r834]
    +* Implementation test: Files were read and written while keeping their empty lines.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
    -    * [ ] corresponding documentation articles updated
    +    * [x] corresponding documentation articles updated
         * [ ] new documentation articles created
         * [ ] not needed
     * **Language files:**
         * [ ] corresponding language files updated
    -    * [ ] not needed
    +    * [x] not needed
    
     ###Tests:
     (*Describe, which tests you performed and their outcome*)
    
    • status: implementing --> testing
     

    Related

    Commit: [r834]

  • Erik Hänel

    Erik Hänel - 2021-03-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -20,4 +20,4 @@
    
         * [x] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Added to the SW tests. Tests run without any deviation.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB