microsoft loop
1 TopicMS LOOP Not Preserving Code Syntax
I wrote up a pretty https://answers.microsoft.com/en-us/officeinsider/forum/offinsd_loop-offinsdsub_win/ms-loop-not-preserving-code-initial-line-spacing/d0613dc0-8202-4b3d-ae50-c818c5b6a4aa, but https://www.microsoft.com/en-us/microsoft-loop is modifying code when pasted into its code blocks, ultimately excluding white spaces in lines before readable characters. Basic example showing code in original state: def fizzbuzz(n): if n % 3 == 0 and n % 5 == 0: return 'FizzBuzz' elif n % 3 == 0: return 'Fizz' elif n % 5 == 0: return 'Buzz' else: return str(n) print "\n".join(fizzbuzz(n) for n in xrange(1, 21)) When copying the above code from any app (tried several including Notepad) into Loop, the result is below: Note the lack of indentation on each return line. While this is visually undesirable, it's especially problematic for languages like python given its required spacing syntax. If one were to then copy the same code BACK from Loop into a Python program, this code would not work. Again the article on other board goes into far more depth, but figured it out to be shown here too.796Views0likes3Comments