# Bug OP-4284 - Problems when exporting in unified diff

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-4284

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 8.3.0 |
| Observed in versions |  |
| Sprint | 8.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Hi,

When I try to export in unified diff, I encounter two problems:  
1\) The resulting file is on one line so it is not considered as a valid patch.  
2\) The path from where I generate the patch is not taken into account so the resulting patch begins at the root of the repository even if I generate it from a subdirectory.

The provided patch corrects those two problems.

Best regards,

Nicolas Salguero.
