wellys3 0 Posted May 9, 2023 Share Posted May 9, 2023 Dear Evernote, i have question for you, i have installed Evernote Windows 10.56.9. I have code, but when i'm paste to Evernote Windows, the "New Line" missing in Evernote. In example, i have a code below: FUNCTION y01_get_xml_data. *"---------------------------------------------------------------------- *"*"Local Interface: *" EXPORTING *" REFERENCE(EX_OUTPUT) TYPE STRING *" REFERENCE(EX_MESSAGE) TYPE STRING *" TABLES *" IT_BOOKS STRUCTURE Y01_BOOKS *"---------------------------------------------------------------------- "Declarations for Try/Catch block exception handling DATA: lcl_exc TYPE REF TO cx_root. DATA: ld_msg TYPE string. "Declare a reference to your proxy consumer object DATA proxy_test TYPE REF TO y01co_sample_web_service_soap. TRY. "Instantiate the object reference IF proxy_test IS NOT BOUND. CREATE OBJECT proxy_test EXPORTING logical_port_name = 'YLP01_CO_SAMPLE_WEB_SERVICE_SOAP'. ENDIF. "Declare the input and ouput references to your web service call "You can find these by clicking on “Client Proxies” and selecting the "#External View” tab for your proxy DATA: input TYPE y01get_xml_data_soap_in, output TYPE y01get_xml_data_soap_out. "There is one input value for this service call for user id "input-d_num = im_input. "Call the method (web service call) you can use the pattern to generate the code if you wish CALL METHOD proxy_test->get_xml_data EXPORTING input = input IMPORTING output = output. "Process the output DATA: lt_data TYPE STANDARD TABLE OF x255, ld_output_length TYPE i. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = output-get_xml_data_result IMPORTING output_length = ld_output_length TABLES binary_tab = lt_data. DATA: ld_string TYPE string. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = ld_output_length IMPORTING text_buffer = ld_string TABLES binary_tab = lt_data EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. "Implement suitable error handling here ENDIF. ex_output = ld_string. "*--------------------------------------------------------------------* DATA: lit_return TYPE TABLE OF bapiret2, lit_books_xml TYPE TABLE OF smum_xmltb. CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = output-get_xml_data_result TABLES xml_table = lit_books_xml return = lit_return. IF NOT lit_books_xml[] IS INITIAL. DATA: ld_tabix TYPE sy-tabix, lwa_books LIKE LINE OF it_books. LOOP AT lit_books_xml INTO DATA(lwa_books_xml) WHERE hier EQ '3' AND type EQ 'A' AND cname EQ 'id'. ld_tabix = sy-tabix + 2. CLEAR lwa_books. lwa_books-id = lwa_books_xml-cvalue. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname = 'author'. lwa_books-author = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'title'. lwa_books-title = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'genre'. lwa_books-genre = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'price'. lwa_books-price = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'pub_date'. lwa_books-pub_date = lwa_books_xml-cvalue(4) && lwa_books_xml-cvalue+5(2) && lwa_books_xml-cvalue+8(2). ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'review'. lwa_books-review = lwa_books_xml-cvalue. ENDIF. APPEND lwa_books TO it_books. ENDLOOP. ENDIF. CATCH cx_ai_system_fault INTO lcl_exc. ld_msg = lcl_exc->get_text( ). ex_message = ld_msg. ENDTRY. ENDFUNCTION. When i'm paste in Evernote Windows using Code Block, looks like: FUNCTION y01_get_xml_data. *"---------------------------------------------------------------------- *"*"Local Interface: *" EXPORTING *" REFERENCE(EX_OUTPUT) TYPE STRING *" REFERENCE(EX_MESSAGE) TYPE STRING *" TABLES *" IT_BOOKS STRUCTURE Y01_BOOKS *"---------------------------------------------------------------------- "Declarations for Try/Catch block exception handling DATA: lcl_exc TYPE REF TO cx_root. DATA: ld_msg TYPE string. "Declare a reference to your proxy consumer object DATA proxy_test TYPE REF TO y01co_sample_web_service_soap. TRY. "Instantiate the object reference IF proxy_test IS NOT BOUND. CREATE OBJECT proxy_test EXPORTING logical_port_name = 'YLP01_CO_SAMPLE_WEB_SERVICE_SOAP'. ENDIF. "Declare the input and ouput references to your web service call "You can find these by clicking on “Client Proxies” and selecting the "#External View” tab for your proxy DATA: input TYPE y01get_xml_data_soap_in, output TYPE y01get_xml_data_soap_out. "There is one input value for this service call for user id "input-d_num = im_input. "Call the method (web service call) you can use the pattern to generate the code if you wish CALL METHOD proxy_test->get_xml_data EXPORTING input = input IMPORTING output = output. "Process the output DATA: lt_data TYPE STANDARD TABLE OF x255, ld_output_length TYPE i. CALL FUNCTION 'SCMS_XSTRING_TO_BINARY' EXPORTING buffer = output-get_xml_data_result IMPORTING output_length = ld_output_length TABLES binary_tab = lt_data. DATA: ld_string TYPE string. CALL FUNCTION 'SCMS_BINARY_TO_STRING' EXPORTING input_length = ld_output_length IMPORTING text_buffer = ld_string TABLES binary_tab = lt_data EXCEPTIONS failed = 1 OTHERS = 2. IF sy-subrc <> 0. "Implement suitable error handling here ENDIF. ex_output = ld_string. "*--------------------------------------------------------------------* DATA: lit_return TYPE TABLE OF bapiret2, lit_books_xml TYPE TABLE OF smum_xmltb. CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = output-get_xml_data_result TABLES xml_table = lit_books_xml return = lit_return. IF NOT lit_books_xml[] IS INITIAL. DATA: ld_tabix TYPE sy-tabix, lwa_books LIKE LINE OF it_books. LOOP AT lit_books_xml INTO DATA(lwa_books_xml) WHERE hier EQ '3' AND type EQ 'A' AND cname EQ 'id'. ld_tabix = sy-tabix + 2. CLEAR lwa_books. lwa_books-id = lwa_books_xml-cvalue. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname = 'author'. lwa_books-author = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'title'. lwa_books-title = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'genre'. lwa_books-genre = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'price'. lwa_books-price = lwa_books_xml-cvalue. ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'pub_date'. lwa_books-pub_date = lwa_books_xml-cvalue(4) && lwa_books_xml-cvalue+5(2) && lwa_books_xml-cvalue+8(2). ENDIF. ld_tabix = ld_tabix + 1. READ TABLE lit_books_xml INTO lwa_books_xml INDEX ld_tabix. IF lwa_books_xml-cname EQ 'review'. lwa_books-review = lwa_books_xml-cvalue. ENDIF. APPEND lwa_books TO it_books. ENDLOOP. ENDIF. CATCH cx_ai_system_fault INTO lcl_exc. ld_msg = lcl_exc->get_text( ). ex_message = ld_msg. ENDTRY. ENDFUNCTION. Result: "New Line" is missing. This happen Evernote Windows 10.56.9 and Evernote Web (https://www.evernote.com/client/web). Any kind help would be nice. Thank you. Link to comment
Level 5* gazumped 12,074 Posted May 9, 2023 Level 5* Share Posted May 9, 2023 5 hours ago, wellys3 said: Any kind help would be nice. Thank you. Hi. We're (mostly) not Evernote here - just other users. The app editor is not designed for coding use - you'd be better off using another application and attaching the document file to a note to preserve your code and avoid random line artefacts. 1 Link to comment
Level 5 PinkElephant 8,832 Posted May 9, 2023 Level 5 Share Posted May 9, 2023 Have you inserted your code into a normal note text area, or into a code block ? Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 11 hours ago, gazumped said: Hi. We're (mostly) not Evernote here - just other users. The app editor is not designed for coding use - you'd be better off using another application and attaching the document file to a note to preserve your code and avoid random line artefacts. Yes, thanks for the input. But, it would be nice, if when i'm paste to code block in Evernote "New Line" not missing. 😄 Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 7 hours ago, PinkElephant said: Have you inserted your code into a normal note text area, or into a code block ? I have inserted code using Evernote "Code Block". If "Text Area" just fine, otherwise for "Code Block". 😄 Link to comment
Level 5 PinkElephant 8,832 Posted May 10, 2023 Level 5 Share Posted May 10, 2023 Were the new lines removed when you pasted into a code block, then ? Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 43 minutes ago, PinkElephant said: Were the new lines removed when you pasted into a code block, then ? I want "New Line" still exist. I want exactly code pasted when i'm copy. Link to comment
Level 5 PinkElephant 8,832 Posted May 10, 2023 Level 5 Share Posted May 10, 2023 You say what you expect. Fine. You don’t answer my simple question: When were the new line characters removed ? When you copied and then pasted into a code block ? And what happens when you copy the text/ code back to another place ? Do the „new lines“ show again ? Or were they completely removed ? Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 6 minutes ago, PinkElephant said: You say what you expect. Fine. You don’t answer my simple question: When were the new line characters removed ? When you copied and then pasted into a code block ? And what happens when you copy the text/ code back to another place ? Do the „new lines“ show again ? Or were they completely removed ? When copied and pasted into a code block. "New Line" completely removed. When i highlight code block copied and then pasted into notepad, "new line" completely removed. This is frustrated, i must bring "new line" manually into code block. Link to comment
Level 5 PinkElephant 8,832 Posted May 10, 2023 Level 5 Share Posted May 10, 2023 OK, this means it’s not only a display problem of the code block, it is a change of the code itself. Not good ! Do you use the „New Line“ character, or the „Enter“ character to create the new lines ? Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 2 minutes ago, PinkElephant said: OK, this means it’s not only a display problem of the code block, it is a change of the code itself. Not good ! Do you use the „New Line“ character, or the „Enter“ character to create the new lines ? I used "Enter" character for new lines. I hope Evernote Teams can solved this problem in new update. Link to comment
Level 5 PinkElephant 8,832 Posted May 10, 2023 Level 5 Share Posted May 10, 2023 You need to issue a support ticket to make them recognize the issue. The forum is user2user - we can help to analyze an issue, work around it sometimes, but we are not support, and have no access to resources. Link to comment
wellys3 0 Posted May 10, 2023 Author Share Posted May 10, 2023 1 minute ago, PinkElephant said: You need to issue a support ticket to make them recognize the issue. The forum is user2user - we can help to analyze an issue, work around it sometimes, but we are not support, and have no access to resources. Ok thank you. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now