https://bugzilla.wikimedia.org/show_bug.cgi?id=72426

            Bug ID: 72426
           Summary: copy paste of tables does not preserve true copy of
                    wiki markup
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: Firefox
   Mobile Platform: ---

Intention:
Copy a table within an article to use as a template for a similar table with
different data

Steps to Reproduce:
1. Paste the following table into a page using the wikitext editor
{| class="wikitable"
|+ Variables
|-
!colspan=2|Type||Mechanical variable||Analogous electrical variable
|-
|rowspan=2|Power conjugate pair||Effort variable||Force||Voltage
|-
|Flow variable||Velocity||Current
|-
|rowspan=2|Hamiltonian variables||Effort Hamiltonian||Momentum||Flux linkage
|-
|Flow Hamiltonian||Displacement||Charge
|}
2. Save the page and open VE
3. Copy and paste the table to a new location.  It is best to include in the
selection a small amount of text before and after the table to guarantee that
the whole table is selected.
4. Save the page
5. Examining the copy in the wikitext editor

Actual Results:  
The copy of the table looks like this:

{| class="wikitable"
|+
<nowiki> </nowiki>Variables

! colspan="2" |
Type
!
Mechanical variable
!
Analogous electrical variable
|-
| rowspan="2" |Power conjugate pair
|Effort variable
|Force
|Voltage
|-
|Flow variable
|Velocity
|Current
|-
| rowspan="2" |Hamiltonian variables
|Effort Hamiltonian
|Momentum
|Flux linkage
|-
|Flow Hamiltonian
|Displacement
|Charge
|}

Note the refactoring of one table line per row to one table cell per row.  Note
also the totally spurious nowiki tags in the table caption line.

Expected Results:  
I expect copy paste to create an exact clone of the thing being copied.  No
refactoring or parsing of the selected code should take place at all.

This would not be so big an issue if there was zero change to the rendered
page, but this is not the case; note the taller height of the cells in the
title row.

Reproducible: Always

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to