This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] [issue771] "Diffing individual files" training mission generates an error if whitespace is stripped

awelch0100 bugs at openhatch.org
Mon Sep 24 07:18:31 UTC 2012


New submission from awelch0100 <awelch0100 at gmail.com>:

I'm using PuTTY to perform the training missions on an aws instance of ubuntu. 
It looks like PuTTY's copy and paste feature strips whitespace from lines that 
only contain whitespace. Using the attached file as an example, a normal diff 
would have whitespace on lines 10, 15, 18, and 21. However, since I copy and 
pasted it from PuTTY the whitespace on those lines was stripped. Submitting this 
as an answer for the "Diffing individual files" training mission generates this 
response: "The file resulting from patching does not have the correct contents."

----------
files: openhatch_diff_no_whitespace.txt
messages: 3425
nosy: awelch0100, paulproteus
priority: bug
status: unread
title: "Diffing individual files" training mission generates an error if whitespace is stripped

__________________________________________
Roundup issue tracker <bugs at openhatch.org>
<https://openhatch.org/bugs/issue771>
__________________________________________
-------------- next part --------------
--- original    2012-09-24 05:55:05.733052089 +0000
+++ nutty-pancake.txt   2012-09-24 05:57:49.721057817 +0000
@@ -11,7 +11,7 @@
 * 1/4 cup milk
 * 1 large egg
 * 2 tablespoon unsalted butter, melted
-* 1 teaspoon almond extract
+* 1 teaspoon walnut extract
 * Vegetable oil for brushing griddle

 == Procedure ==
@@ -25,7 +25,7 @@
 3. Microwave buttermilk and milk in a 2-cup Pyrex
    measuring cup to room temperature, 20 to 30 seconds.

-4. Whisk in egg, butter, and almond extract.
+4. Whisk in egg, butter, and walnut extract.

 5. Add wet ingredients to dry ingredients and whisk until
    just mixed.


More information about the Devel mailing list