| 201 /* any newlines in the string will now be \r\n, so we need to strip out the \r */ |
201 /* any newlines in the string will now be \r\n, so we need to strip out the \r */ |
| 202 split = g_strsplit(html, "\r\n", 0); |
202 split = g_strsplit(html, "\r\n", 0); |
| 203 g_free(html); |
203 g_free(html); |
| 204 html = g_strjoinv("\n", split); |
204 html = g_strjoinv("\n", split); |
| 205 g_strfreev(split); |
205 g_strfreev(split); |
| 206 |
|
| 207 html = g_strstrip(html); |
|
| 208 |
206 |
| 209 #if 0 /* Debugging for Windows clipboard */ |
207 #if 0 /* Debugging for Windows clipboard */ |
| 210 purple_debug_info("imhtml clipboard", "HTML fragment: '%s'\n", html); |
208 purple_debug_info("imhtml clipboard", "HTML fragment: '%s'\n", html); |
| 211 #endif |
209 #endif |
| 212 |
210 |