Mailspring/spec/fixtures/paste/excel-paste-in.html
Ben Gotow b00e5439e5 feat(paste): Paste accepts more HTML, paste and match style now available
Summary:
Related to #320, #494, #515, #553

Ignore newlines and returns in HTML, they can be inside tags

Allow all attributes so that paste from excel looks nice

Never let someone paste a `contenteditable` attribute

Update specs

Test Plan: Run new specs

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2309
2015-12-07 15:34:03 -08:00

279 lines
10 KiB
HTML

"<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link id=Main-File rel=Main-File
href="file://localhost/Users/bengotow/Library/Caches/TemporaryItems/msoclip/0/clip.htm">
<link rel=File-List
href="file://localhost/Users/bengotow/Library/Caches/TemporaryItems/msoclip/0/clip_filelist.xml">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
x\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:1.0in .75in 1.0in .75in;
mso-header-margin:.5in;
mso-footer-margin:.5in;}
.font5
{color:black;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Geneva;
mso-generic-font-family:auto;
mso-font-charset:0;}
.font6
{color:black;
font-size:10.0pt;
font-weight:700;
font-style:normal;
text-decoration:none;
font-family:Geneva;
mso-generic-font-family:auto;
mso-font-charset:0;}
td
{padding:0px;
mso-ignore:padding;
color:black;
font-size:12.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
.xl63
{vertical-align:middle;}
.xl64
{font-size:24.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:center;
vertical-align:middle;}
.xl65
{border-top:none;
border-right:none;
border-bottom:none;
border-left:1.0pt solid windowtext;}
.xl66
{border-top:none;
border-right:1.0pt solid windowtext;
border-bottom:none;
border-left:none;}
.xl67
{font-size:22.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:center;
vertical-align:middle;}
.xl68
{font-size:36.0pt;
font-weight:700;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:center;
vertical-align:middle;}
.xl69
{font-size:14.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
vertical-align:middle;}
.xl70
{font-size:14.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
vertical-align:middle;
border-top:none;
border-right:1.0pt solid windowtext;
border-bottom:none;
border-left:none;}
.xl71
{font-size:14.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:left;
vertical-align:middle;
border-top:none;
border-right:none;
border-bottom:none;
border-left:1.0pt solid windowtext;}
.xl72
{font-size:14.0pt;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
vertical-align:middle;
border-top:none;
border-right:none;
border-bottom:none;
border-left:1.0pt solid windowtext;}
.xl73
{font-size:26.0pt;
font-style:italic;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:center;
vertical-align:middle;
border-top:1.0pt solid windowtext;
border-right:none;
border-bottom:none;
border-left:1.0pt solid windowtext;}
.xl74
{font-size:26.0pt;
font-style:italic;
font-family:Calibri;
mso-generic-font-family:auto;
mso-font-charset:0;
text-align:center;
vertical-align:middle;
border-top:1.0pt solid windowtext;
border-right:1.0pt solid windowtext;
border-bottom:none;
border-left:none;}
-->
</style>
</head>
<body link=blue vlink=purple>
<table border=0 cellpadding=0 cellspacing=0 width=471 style='border-collapse:
collapse;width:471pt'>
<!--StartFragment-->
<col width=110 style='mso-width-source:userset;mso-width-alt:4693;width:110pt'>
<col width=80 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'>
<col width=12 style='mso-width-source:userset;mso-width-alt:512;width:12pt'>
<col width=67 style='mso-width-source:userset;mso-width-alt:2858;width:67pt'>
<col width=12 style='mso-width-source:userset;mso-width-alt:512;width:12pt'>
<col width=110 style='mso-width-source:userset;mso-width-alt:4693;width:110pt'>
<col width=80 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'>
<tr height=33 style='height:33.0pt'>
<td colspan=2 height=33 class=xl73 width=190 style='border-right:1.0pt solid black;
height:33.0pt;width:190pt'>+ Pros +</td>
<td class=xl64 width=12 style='width:12pt'></td>
<td class=xl67 width=67 style='width:67pt'>vs.</td>
<td width=12 style='width:12pt'></td>
<td colspan=2 class=xl73 width=190 style='border-right:1.0pt solid black;
width:190pt'>- Cons -</td>
</tr>
<tr height=15 style='height:15.0pt'>
<td height=15 class=xl65 style='height:15.0pt;font-size:12.0pt;color:white;
font-weight:700;text-decoration:none;text-underline-style:none;text-line-through:
none;font-family:Calibri;border-top:none;border-right:none;border-bottom:
1.0pt solid white;border-left:1.0pt solid windowtext;background:black;
mso-pattern:black none'>Item</td>
<td class=xl66 style='font-size:12.0pt;color:white;font-weight:700;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:1.0pt solid white;border-left:none;background:black;mso-pattern:
black none'>Importance</td>
<td></td>
<td></td>
<td></td>
<td class=xl65 style='font-size:12.0pt;color:white;font-weight:700;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:none;border-bottom:1.0pt solid white;
border-left:1.0pt solid windowtext;background:black;mso-pattern:black none'>Item</td>
<td class=xl66 style='font-size:12.0pt;color:white;font-weight:700;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:1.0pt solid white;border-left:none;background:black;mso-pattern:
black none'>Importance</td>
</tr>
<tr height=28 style='mso-height-source:userset;height:28.0pt'>
<td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white;
font-weight:400;text-decoration:none;text-underline-style:none;text-line-through:
none;font-family:Calibri;border-top:none;border-right:none;border-bottom:
none;border-left:1.0pt solid windowtext;background:#76933C;mso-pattern:#76933C none'>Good</td>
<td class=xl69 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;background:#76933C;mso-pattern:#76933C none'>2</td>
<td class=xl63></td>
<td class=xl68></td>
<td class=xl63></td>
<td class=xl72 style='font-size:14.0pt;color:white;font-weight:400;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:none;border-bottom:none;
border-left:1.0pt solid windowtext;background:#963634;mso-pattern:#963634 none'>Bad</td>
<td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:none;border-left:none;background:#963634;mso-pattern:#963634 none'>2</td>
</tr>
<tr height=28 style='mso-height-source:userset;height:28.0pt'>
<td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white;
font-weight:400;text-decoration:none;text-underline-style:none;text-line-through:
none;font-family:Calibri;border-top:none;border-right:none;border-bottom:
none;border-left:1.0pt solid windowtext;background:#9BBB59;mso-pattern:#9BBB59 none'>Cheap</td>
<td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:none;border-left:none;background:#9BBB59;mso-pattern:#9BBB59 none'>4</td>
<td class=xl63></td>
<td class=xl63></td>
<td class=xl63></td>
<td class=xl72 style='font-size:14.0pt;color:white;font-weight:400;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:none;border-bottom:none;
border-left:1.0pt solid windowtext;background:#C0504D;mso-pattern:#C0504D none'>Expensive</td>
<td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:none;border-left:none;background:#C0504D;mso-pattern:#C0504D none'>3</td>
</tr>
<tr height=28 style='mso-height-source:userset;height:28.0pt'>
<td height=28 class=xl71 style='height:28.0pt;font-size:14.0pt;color:white;
font-weight:400;text-decoration:none;text-underline-style:none;text-line-through:
none;font-family:Calibri;border-top:none;border-right:none;border-bottom:
none;border-left:1.0pt solid windowtext;background:#76933C;mso-pattern:#76933C none'>Fast</td>
<td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:none;border-left:none;background:#76933C;mso-pattern:#76933C none'>1</td>
<td class=xl63></td>
<td class=xl63></td>
<td class=xl63></td>
<td class=xl72 style='font-size:14.0pt;color:white;font-weight:400;
text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:none;border-bottom:none;
border-left:1.0pt solid windowtext;background:#963634;mso-pattern:#963634 none'>Slow</td>
<td class=xl70 align=right style='font-size:14.0pt;color:white;font-weight:
400;text-decoration:none;text-underline-style:none;text-line-through:none;
font-family:Calibri;border-top:none;border-right:1.0pt solid windowtext;
border-bottom:none;border-left:none;background:#963634;mso-pattern:#963634 none'>1</td>
</tr>
<!--EndFragment-->
</table>
</body>
</html>
"