diffdf icon indicating copy to clipboard operation
diffdf copied to clipboard

issues with white space and new lines

Open gowerc opened this issue 1 year ago • 0 comments

Two issues here (perhaps need a separate ticket)

  • The reporting off diffdf gets semi broken if a string contains a new line character
  • Theres no indication for white space so you can't really tell why " " is being considered different to " "
> x[5, "SRDET1"]
# A tibble: 1 × 1
  SRDET1                                                           
  <chr>                                                            
1 "FIVER WITOUT OTHER SYMPTOM. \r\nDEXA 10MG BID IV ADMINISTERED. "
> x_py[5, "SRDET1"]
# A tibble: 1 × 1
  SRDET1                                                          
  <chr>                                                           
1 "FIVER WITOUT OTHER SYMPTOM. \r\nDEXA 10MG BID IV ADMINISTERED."

In the diffdf report this isn't clear at all:

  ===============================================================================================
   VARIABLE  ..ROWNUMBER..                BASE                              COMPARE              
  -----------------------------------------------------------------------------------------------
    SRDET1         5        FIVER WITOUT OTHER SYMPTOM. 
...  FIVER WITOUT OTHER SYMPTOM. 
... 
  -----------------------------------------------------------------------------------------------

gowerc avatar Dec 08 '23 07:12 gowerc